Sorting with string length and content

Sorting with string length and content

inspirenigniteinspirenignite Posts: 3Questions: 1Answers: 0

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

Answers

  • kthorngrenkthorngren Posts: 21,167Questions: 26Answers: 4,921
    Answer ✓

    Maybe the natural sorting plugin will do what you want.

    Kevin

  • inspirenigniteinspirenignite Posts: 3Questions: 1Answers: 0

    Thanks Kevin.

    Looks like the solution is natural sorting. thanks a million for quick response :)

  • inspirenigniteinspirenignite Posts: 3Questions: 1Answers: 0

    Just implemented and deployed a minified js script locally and it works like a charm. Thanks a lot again.

This discussion has been closed.