SKY lists - fix sorting

Right now, only numeric-only fields sort correctly. All other fields do an alphabetic sort, which means 10 sorts before 9, and A and 1 have the same sort priority. That means, given this list of items:

10,9,2,3,A,B,C

You get this sort order:

10,A,2,B,3,C,9

Expected:

2,3,9,10,A,B,C

To accomplish this, you would need to detect contiguous numeric characters at the beginning of a string and coerce them into a number, then sort numbers BEFORE alphabetic characters.

  • Guest
  • Jun 7 2017
  • Attach files