Custom natural sorting - Order first by special characters, then numbers and finally alphabets

Custom natural sorting - Order first by special characters, then numbers and finally alphabets

nbarathmcanbarathmca Posts: 1Questions: 1Answers: 0

Hi All,
I am using Natural Sort plugin in DataTable. Currently, natural sort plugin sorts the column first by numbers, then special characters and finally alphabets.

But, I need to modify sort order. The column should be sorted first by special characters, then numbers and finally alphabets. Following is the sample data set.

Input:
1
A10
A1
.V01
a1
.V03
B2
.C2
z3
2
A2

Expected output(Ascending order):
.C2
.V01
.V03
1
2
A1
A2
A10
B2
a1
z3

Any help would be much appreciated.

Thanks in advance.

This discussion has been closed.