This page is a wiki. Please login or create an account to begin editing.


Natural Order

Rating:
Your rating: None Average: 5 (3 votes)
Category:
Year released:
Author:
Publisher:
Download natural_order.sit (17.72 KB)
For System 7.0 - 7.6 - Mac OS 9
Emulation
Guides on emulating older applications

Natural Order is a System Extension that improves the sorting order that your Macintosh uses when it displays lists of items that have numbers in the name.

If you have a group of numbered files on your disk and you select "View By Name" in the Finder, you might expect the files to be displayed in sensible numerical order, like this:

Picture1.jpg
Picture2.jpg
Picture3.jpg
Picture4.jpg
Picture5.jpg
Picture6.jpg
Picture7.jpg
Picture8.jpg
Picture9.jpg
Picture10.jpg
Picture11.jpg
Picture12.jpg

If you've ever had a group of numbered files on your disk, you'll know that the Finder doesn't do this. When you select "View By Name" what you get looks like this:

Picture1.jpg
Picture10.jpg
Picture11.jpg
Picture12.jpg
Picture2.jpg
Picture3.jpg
Picture4.jpg
Picture5.jpg
Picture6.jpg
Picture7.jpg
Picture8.jpg
Picture9.jpg

This looks stupid, and it's because the System is just sorting the names lexicographically. By the same logic that dictates that "ab" comes alphabetically before "c" (which is correct) the System decides that "12" comes before "3" (which is stupid). D'oh! Natural Order works by overriding the System's comparison of the numerical portions of strings, and sorts them by numerical value instead of "alphabetical" value.

http://www.naturalordersort.org/

Compatibility

Comments

by xy - 2013, October 28 - 10:11am

This is gold! Thanks a lot!