in reply to sort behavior explanation required

The second sort is numerical and when sorted numerical all those names are considered by perl to be zero.

Edit: The first sort is sorted by the ascii value of the first char in the string and if that one is the same it looks at the next one.