Written by MechaMechanism the 21 Sep 10 at 01:08.
Related project: Nautilus.
Status: New
Rationale
This is for Gnome's file manager Nautilus.
When you give a folder the name of a month, use correct sorting of months, Jan-Dec. As example, I create 3 folders, one folder I give the name May, a second folder I give the name February, a third folder I give the name July. The correct sorting and display of the folders in Nautilus would be February, May, July. Right now Nautilus uses alphabetical sorting of month names.
So I assume any folders that don't match a month name should be sorted alphabetically? Before or after the months? Month sorting would have to be localised, and should match abbreviations too (Feb, Mar, Dec, etc). Not a bad idea.
Darwin Survivor(Brainstorm moderator)
wrote on the 22 Sep 10 at 00:02
I think this would be awesome cuppled with a number sorting system as well (so 11foo.txt is before 100foo.txt).
The idea is nice, however I want to highlight a few points...
*Numbers in the name should be treated as year [4 digits] and day [2 digits] and sorted accordingly;
*Still default sorting alphabetically [easier];
*It should work not only with English, but other langs too.
The commenter's have really good points. I agree that sorting by month needs to be localized in all languages. The comment by McIvor brings up an interesting point about mixed folders, I tested Nautilus and it uses alphabetical and numerical sorting simultaneously, so I would just add the month sorting in with the two that Nautilus already uses.
Nautilus sorts numbers before letters. So a folder named 3 comes before a letter or word. I propose that the sort order should be numerical, month, alphabetical. I Look forward to more discussion.
@Akerbos I understand what your saying and people can certainly do it the way you do it. But I think having my solution available is just another tool that can be useful to some people. Especially if it can be toggled. The main thing is that it automates the process somewhat. When tools can be toggled, I think they only add to the user experience.
This should be handled via metadata, not via handling how the filenames are sorted. Otherwise we'd have very inconsistent behavoir between the CLI and nautilus.
@TwistedLincoln Can you explain how the metadata thing would work. I take it that the folder sorting would be abstracted out and the underlying directory structure would be conventional?
@MechaMechanism: Yes, the underlying directory structure would be unchanged. But if metadata could be attached, you could set nautilus to sort differently based on the metadata. Think of sorting songs in a media player based on vorbis-tags or id3 tags.
@TwistedLincoln This metadata approach does sound quite nice. Be pretty powerful as it wouldn't be restricted to predetermined sort methods. The metadata option would also benefit from allowing users to create there own sorting rules. I prefer this metadata approach to the sorting issue.
Name your folders according to ISO 8601 YYYY[-MM[-DD]], and they will be sorted properly.
Changing sort order would cause following problems:
* "April", "May", "June", etc. are not necessarily months (@wouter215); similar problems in other languages (e.g. julio in Spanish)
* Inconsistent sort order between locales [admittedly, this is already an issue]
* Sorting will be unintuitive for folders containing both months and non-months.
Quote "Inconsistent sort order between locales [admittedly, this is already an issue]" End Quote
This is why Nautilus should have user configurable rules, that plus metadata user controlled based sorting. Rather than trying to have one predefined rule for all locales, don't you think this idea might allow for different locales to improve sort order. What do you think.
P.S. If anybody knows how to get notified of replies to comments on Brainstorm, let me know.