javascript - alphanumeric sorting in java script -
i having field has data in way . a_0121-x-1
a_0121-x-10
a_0121-x-11
a_0121-x-2
a_0121-x-3 a_0121-z-1 a_0121-z-11 a_0121-z-12 a_0121-z-13 a_0121-z-2 a_0121-z-3 s0 how sort numerically this
a_0121-x-1
a_0121-x-2
a_0121-x-3 a_0121-x-10
a_0121-x-11 a_0121-z-1
a_0121-z-2 a_0121-z-3 a_0121-z-11 a_0121-z-12 a_0121-z-13
thanks in advance
i think mean natural sort in js
look on brian huisman solution
https://web.archive.org/web/20130929122019/http://my.opera.com/greywyvern/blog/show.dml/1671288
Comments
Post a Comment