Hi
I've numerous times come across the issue of sorting strings in a more "human way of thinking fashion"
I've played around with the different sorting predicates like 'lessp, 'alphaNumCmp, 'axlStrcmpAlpNum but none are really sorting in the way I would need. I had hoped the 'axlStrcmpAlpNum would do what I wanted, but mixed strings are a challenge.
Example (end sorting result that I would like)
"22"
"111234"
"111237"
"111a32"
"112323"
"11235a"
"11235f"
"abc211"
"xyz211"
I've come across some LISP code for this, but must admit that although I've done a lot of skill programming the code at the link below are a bit "black magic like" for me, it does not translate directly into a skill program
http://rottcodd.wordpress.com/2007/12/15/human-order-sorting/
So maybe someone could shed som light on how to transform this into something usefull in Skill.
Hint: http://www.davekoelle.com/alphanum.html has a number of other language implementations for the same type of sorting, it actually explain and illustrate the problem very nicely.
Thank you very much in advance
Best regards
Ole