Fixed sort for strings with numbers

Also updated unit test to make sure the numbers are sorted correctly