In modern operating systems, a list of files named 1.jpg through 10.jpg is sorted with 10.jpg appearing after 9.jpg, as it should. But I don't know of any natural sort implementation that accounts for Roman numerals.

This is a disaster for classical music tracks:

enter image description here

Has anyone seen a Roman numeral natural sort in the wild? Is there a precedent of support for this in any application?

link|improve this question
Those look like letters (I, II, III, ...), not like roman numerals (Ⅰ, Ⅱ, Ⅲ). – ninjalj Aug 10 '11 at 5:24
feedback

migrated from stackoverflow.com Aug 21 '11 at 8:48

This question came from our site for professional and enthusiast programmers.

1 Answer

Well, C qsort (for one) supports it because you provide your own comparison function. Your comparison function can be arbitrarily complex.

But that's only if this is a programming question (you asked about libraries). If it's a file manager question for an OS, it probably does belong on SuperUser (let us know if this is the case and we'll nudge it over there).

link|improve this answer
It's more of a "has anyone seen this in the wild" so I suppose it's better off at SuperUser. – Matt M. Aug 10 '11 at 5:11
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.