Talk:Natural sorting: Difference between revisions

Content added Content deleted
(→‎Numeric sub-fields: Split then compare all fields from the right)
Line 17: Line 17:
# If the fields of the two strings compare equal so far, but one string has no more fields but the other has more fields, then the string with least fields is the smaller.
# If the fields of the two strings compare equal so far, but one string has no more fields but the other has more fields, then the string with least fields is the smaller.
Using the above comparison rules you should be able to sort/order strings. --[[User:Paddy3118|Paddy3118]] 19:11, 23 April 2011 (UTC)
Using the above comparison rules you should be able to sort/order strings. --[[User:Paddy3118|Paddy3118]] 19:11, 23 April 2011 (UTC)
: Cool. That corresponds to one of Tcl's built-in sorting modes. :-) –[[User:Dkf|Donal Fellows]] 20:01, 23 April 2011 (UTC)