Post Reply 
Sorting Strings
07-12-2017, 12:32 AM (This post was last modified: 07-12-2017 12:32 AM by Han.)
Post: #9
RE: Sorting Strings
How should the natural sorting program sort: 1.2.3 versus 1.20.3 versus 1.02.3. In other words, when there are more than two decimal points, which "side" (left/right) has higher priority?

1.2.3 == 1.20.3 since .2 and .20 are the same
1.2.3 < 1.20.3 since 2 is less than 20
1.2.3 > 1.20.3 since .2 and .20 are equal, but .2 is shorter in characters

Similar thoughts for comparing with 1.02.3

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Sorting Strings - Jacob Wall - 07-10-2017, 12:18 AM
RE: Sorting Strings - webmasterpdx - 07-10-2017, 04:58 AM
RE: Sorting Strings - Joe Horn - 07-10-2017, 07:22 AM
RE: Sorting Strings - Jacob Wall - 07-10-2017, 05:02 PM
RE: Sorting Strings - Tyann - 07-11-2017, 05:03 AM
RE: Sorting Strings - Tyann - 07-11-2017, 06:06 PM
RE: Sorting Strings - Jacob Wall - 07-11-2017, 06:21 PM
RE: Sorting Strings - Didier Lachieze - 07-11-2017, 11:32 PM
RE: Sorting Strings - Gilles59 - 07-12-2017, 08:28 PM
RE: Sorting Strings - Han - 07-12-2017 12:32 AM
RE: Sorting Strings - Jacob Wall - 07-12-2017, 05:10 AM
RE: Sorting Strings - Jacob Wall - 07-14-2017, 07:02 AM
RE: Sorting Strings - Didier Lachieze - 07-14-2017, 08:11 AM
RE: Sorting Strings - Jacob Wall - 07-15-2017, 03:00 AM



User(s) browsing this thread: 10 Guest(s)