Use natural sort order for Subject, so that numerics are sorted as expected

NEW
Unassigned

Status

Thunderbird
Folder and Message Lists
--
enhancement
8 years ago
3 years ago

People

(Reporter: Daniel, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

8 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2) Gecko/20100115 Firefox/3.6 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.1.7) Gecko/20100111 Lightning/1.0b1 Thunderbird/3.0.1

Please enhance the sort order for the folder list so that the list of folders can be numeric and/or alphabetic sorted. (I'm using IMAP.)

Atm. it seems to have only sorted by alphabetic.



Reproducible: Always

Actual Results:  
wrong sorted folder-list:
11-NOV
12-DEZ
1-JAN
2-FEB
3-MAR
4-APR

Expected Results:  
expected sorted folder-list:
1-JAN
2-FEB
3-MAR
4-APR
...
11-NOV
12-DEZ
(Reporter)

Updated

8 years ago
Version: unspecified → 3.0

Comment 2

4 years ago
(In reply to Jesse Ruderman from comment #1)
> I want this for sorting my bugmail. "Bug 90000" < "Bug 100000".
> 
> http://www.codinghorror.com/blog/2007/12/sorting-for-humans-natural-sort-
> order.html

good reference. More:
- http://stackoverflow.com/questions/1262239/natural-sort-order-string-comparison-in-java-is-one-built-in
- http://www.codeproject.com/Articles/22517/Natural-Sort-Comparer
- https://social.msdn.microsoft.com/Forums/vstudio/en-US/e4ec8ae3-dc6e-4027-8fed-1be69b6a1462/sorting-a-list-with-alphanumeric-names?forum=csharpgeneral
- see "Updated Answer" in http://stackoverflow.com/questions/51165/how-do-you-do-string-comparison-in-javascript


Could you build one for us as an addon?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(jruderman)
Summary: Numeric sort order → support natural sort order for Subject, so that numerics are sorted sanely
Version: 3.0 → unspecified

Comment 3

3 years ago
I do not plan to write this addon.
Flags: needinfo?(jruderman)
Summary: support natural sort order for Subject, so that numerics are sorted sanely → Use natural sort order for Subject, so that numerics are sorted as expected
You need to log in before you can comment on or make changes to this bug.