Open Bug 414524 Opened 16 years ago Updated 2 years ago

Form autocomplete should sort numbers numerically

Categories

(Toolkit :: Form Manager, defect, P3)

defect

Tracking

()

People

(Reporter: mozilla.org, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11) Gecko/20071204 Ubuntu/7.10 (gutsy) Firefox/2.0.0.11
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11) Gecko/20071204 Ubuntu/7.10 (gutsy) Firefox/2.0.0.11

Many forms require a number to be filled in, and then it would be useful if previously entered values are sorted numerically (e.g., "2", then "50", then "100") instead of alphabetically (e.g., "100", then "2", then "50").

Reproducible: Always




Mixed type lists should probably sort numbers separately, so you'll have "2", "50", "100", "abc", "bar", "foo".

Ubuntu's Nautilus and find sort this way, but not ls:
$ touch 2 10 foo
$ find .
.
./2
./10
./foo
$ ls -l | awk '{print $8}'
10
2
foo
Product: Firefox → Toolkit
Bug 418343 just fixed sorting in FF3 (which was completely broken), but the results for numbers are most likely just being sorted alphabetically. (Feel free to check with tonight's nightly to verify.)

Probably what needs to happen here is to make a second sorting pass on the results we get back from sqlite, look for the range of numerical values (if present, and they should all be together), and then resort that block numerically.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Linux → All
Hardware: PC → All
Version: unspecified → Trunk
Severity: enhancement → minor
Severity: minor → S4
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.