× Third party announcements.
If you want to share with others your project or applications, build with CT, you can do it here.

Question Natural collated sort

  • user836
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 4 months ago #7371 by user836

Please Log in or Create an account to join the conversation.

  • user836
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 4 months ago - 6 years 4 months ago #7409 by user836
Replied by user836 on topic Natural collated sort
Current state of this unit:

1) Topic enumerators sort till 99 subtopics:
1
1.1.1
1.1.2
1.2.1
1.99.99
2
2) Integers sort:
0
00
000
1
2
10
3) Floating point numbers sort:
0,99
1
1,01
1,99
2
Collated alpha sort:
Alpha sorting task made by OS (Windows and Linux).
Thousand separated numbers sort:
1.198
1.199
1.199,50
1.200
1.201
IP addresses:
10.145.254.9
10.145.255.9
10.145.255.10
10.146.254.9
121.243.100.0
255.255.255.254

Thousand and decimal separators are the system default ones.

It is fast. See the time against other functions:
StrCmpLogicalW: 1
WideCompareText: 1,238
NaturalSort: 0,746

sourceforge.net/projects/lazarusfiles/fi...ralsort.zip/download
Last edit: 6 years 4 months ago by user836. Reason: error of info

Please Log in or Create an account to join the conversation.

  • user836
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 4 months ago #7414 by user836
Replied by user836 on topic Natural collated sort
Now it sorts topic enumerators beyond 99 too, due to a new arrangement of the unit.

Please Log in or Create an account to join the conversation.

  • user836
  • Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 4 months ago #7444 by user836
Replied by user836 on topic Natural collated sort

Please Log in or Create an account to join the conversation.