Implementing natural sort

Events happening in the community are now at Drupal community events on www.drupal.org.
mooffie's picture

Natural sorting, also known as natural order, is about putting the string "Chapter 10" after the string "Chapter 2".

Or about putting "I like it with 3.5 spoons of sugar" after "she'll have 2 spoons".

We humans prefer it this way.

There's now a little module to do this in Views. It's functional, but I wrote it solely for fun. What may be of interest to developers is the README.txt, which contains some discussion. The source code is heavily documented as well.

Views Developers

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: