I am working on Program(in c) which require sorting.
One of the requirement of sorting is : Digits Sorting.
Digit sorting shall be completed from least significant digit (i.e. the rightmost digit) and to the most significant
digit (i.e. the leftmost digit) such that the numbers 21, 2, and 11 are sorted as follows: 2, 11, 21.
The given string is in UTF-8 and may contains Special Characters,Digits,Latin letters ,Cyrillic letters ,Hiragana/Katakana etc.
It give following sorting Order :
1
1a
1b
2
11
110
110a
Henry7
Henry24
You might want to consider using the ICU library (International Components for Unicode), which includes a collation (sorting) API.