Documentation ¶
Overview ¶
Package handysort implements an alphanumeric string comparison function in order to sort alphanumeric strings correctly.
Default sort (incorrect):
abc1 abc10 abc12 abc2
Handysort:
abc1 abc2 abc10 abc12
Please note, that handysort is about 5x-8x times slower than a simple sort, so use it wisely.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StringLess ¶
StringLess compares two alphanumeric strings correctly.
Types ¶
Click to show internal directories.
Click to hide internal directories.