Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^3: sorting by numbers then alphabetically

by eff_i_g (Curate)
on Dec 23, 2010 at 19:44 UTC ( #878862=note: print w/ replies, xml ) Need Help??

in reply to Re^2: sorting by numbers then alphabetically
in thread sorting by numbers then alphabetically

Per the docs:

Under natural sorting, strings are splitted at word and number boundaries, and the resulting substrings are compared as follows:

* numeric substrings are compared numerically
* alphabetic substrings are compared lexically
* numeric substrings come always before alphabetic substrings

Comment on Re^3: sorting by numbers then alphabetically

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://878862]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2016-02-10 14:30 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (347 votes), past polls