Sorting with string length and content
Sorting with string length and content

The data is list of string ['224','2224','2241','224P'] When sorted ascending the table shows
2224, 224, 2241, 224P where i am looking for 224, 2224, 2241, 224P . Any idea on how to add string length also in consideration for sorting?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Maybe the natural sorting plugin will do what you want.
Kevin
Thanks Kevin.
Looks like the solution is natural sorting. thanks a million for quick response
Just implemented and deployed a minified js script locally and it works like a charm. Thanks a lot again.