I need to sort a list that's alphanumeric, but it's botching the multi-digit integers since it's character-by-character and 1 is less than 8.
Any it's particularly tricky because there can be alphabetic characters before and after the numbers. So if it can somehow understand the full integer instead of just the single digit then that would do it.
Normal Sort
- Grade 10 Academic
- Grade 10 Applied
- Grade 11
- Grade 8
- Grade 9
Desired Sort:
- Grade 8
- Grade 9
- Grade 10 Academic
- Grade 10 Applied
- Grade 11
Anyone know how to make a Javascript script to sort this way? Or even better if you have an AngularJS solution since I'm using that.
Thanks in advance for any help you can offer.