Welcome, Guest
Username: Password: Remember me
Third party announcements.
If you want to share with others your project or applications, build with CT, you can do it here.
  • Page:
  • 1

TOPIC:

Natural collated sort 8 years 10 months ago #7371

  • user836
  • user836's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 10
  • Thank you received: 4

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

Natural collated sort 8 years 10 months ago #7409

  • user836
  • user836's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 10
  • Thank you received: 4
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

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

Last edit: by user836. Reason: error of info

Natural collated sort 8 years 10 months ago #7414

  • user836
  • user836's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 10
  • Thank you received: 4
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.

Natural collated sort 8 years 9 months ago #7444

  • user836
  • user836's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 10
  • Thank you received: 4

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

  • Page:
  • 1