Ad
  • Default User Avatar

    You're right E comes before I. Here are the results of the test case you provided, sorted →

    [ 'Michael', 348 ] [ 'Robert', 336 ] [ 'Ethan', 318 ] [ 'Lily', 310 ] [ 'Benjamin', 304 ] [ 'Emily', 207 ] [ 'Isabella', 207 ] [ 'Aiden', 190 ] [ 'Logan', 162 ] ....

    Isabella is the one in 7th place so the test works just fine.
    Maybe you got something else wrong.

  • Custom User Avatar

    have you solved that issue? what is the other things to consider? in description it says that we should sort alphabetically nothing more

  • Default User Avatar

    Whether E comes before I is one of many things to consider, why do you mention that in particular?

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution