Improved test for natural sort order