Ticket #2717 (new enhancement)

Opened 5 years ago

Last modified 5 years ago

Sort order

Reported by: BzF Owned by:
Priority: minor Milestone: Future Releases
Component: mc-core Version: 4.8.1
Keywords: Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description (last modified by andrew_b) (diff)

Hi, I tried to search forum about sort order but I'm not sure that tickets I've
found (eg. #1894, #1978) describe my problem with sort order.

Sort order by Name shows this:
/.A-dir
/.a-dir
/.b-dir
/.B-dir
/.0-dir
/.1-dir
/a-dir
/A-dir
/B-dir
/b-dir
/0-dir
/1-dir

.A-file
.a-file
.B-file
.b-file
.0-file
.1-file
a-file
A-file
b-file
B-file
0-file
1-file

so it randomly mixes order of files/dirs filenames which are same except for
upper/lower case - sometimes is lowercase first (a-file) sometimes uppercase
(.A-file).

The order I'd like more will be:
dot dirs
non-dot dirs
dot files
non-dot files
(what is same as it is now)
each of them in alphabetical order then (within same character) lowercase first
And preferably- (probably as an extra option) - with "numbers first".

So it will look like this:
/.0-dir
/.1-dir
/.a-dir
/.A-dir
/.b-dir
/.B-dir
/0-dir
/1-dir
/a-dir
/A-dir
/b-dir
/B-dir

.0-file
.1-file
.a-file
.A-file
.b-file
.B-file
0-file
1-file
a-file
A-file
b-file
B-file

Change History

comment:1 Changed 5 years ago by andrew_b

  • Description modified (diff)
  • Milestone changed from 4.8 to Future Releases

comment:2 Changed 5 years ago by andrew_b

  • Type changed from defect to enhancement
Note: See TracTickets for help on using tickets.