Bug 105264 - File names with *numbers* are not Sorted properly
Summary: File names with *numbers* are not Sorted properly
Status: RESOLVED DUPLICATE of bug 91391
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-08 01:53 UTC by Mohd Asif Ali Rizwaan
Modified: 2005-05-08 02:12 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
list 33 mp3 files which are wrongly (not human friendly) sorted (29.20 KB, image/png)
2005-05-08 02:09 UTC, Mohd Asif Ali Rizwaan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mohd Asif Ali Rizwaan 2005-05-08 01:53:09 UTC
Version:           3.4.0 (using KDE 3.4.0, compiled sources)
Compiler:          gcc version 3.3.4
OS:                Linux (i686) release 2.4.29

Filenames with numbers are not sorted properly in konqueror, causing much trouble to locate/identify a single file in a list of files with numbers:

How to Reproduce:
-----------------

1. create a folder
2. cd to that folder
3. create 33 files like:
-----------------------------
file1.txt
file2.txt
file3.txt
file4.txt
.
.
.
.
.
file10.txt
file11.txt
file12.txt
.
.
.
.
file20.txt
file21.txt
file22.txt
.
.
.
.
.
.
file30.txt
file31.txt
file33.txt
-----------------------------

4. open konqueror
5. go to that folder (where 33 files are created)
6. You can see the files like this:
Incorrect Sorting:
-------------------------
file1.txt
file10.txt
file11.txt
file12.txt
file13.txt
file14.txt
file15.txt
file16.txt
file17.txt
file18.txt
file19.txt
file2.txt
file20.txt
file21.txt
file22.txt
file23.txt
file24.txt
file25.txt
file27.txt
file28.txt
file29.txt
file3.txt
file31.txt
file32.txt
file33.txt
file4.txt
file5.txt
file6.txt
file7.txt
file8.txt
file9.txt
-------------------------

Expected Behavior:
------------------
All files must be sorted which humans can easily understand. The file sorting must be human centric like:
------------------

file1.txt
file2.txt
file3.txt
file4.txt
file5.txt
file6.txt
file7.txt
file8.txt
file9.txt
file10.txt
file11.txt
file12.txt
file13.txt
file14.txt
file15.txt
file16.txt
file17.txt
file18.txt
file19.txt
file20.txt
file21.txt
file22.txt
file23.txt
file24.txt
file25.txt
file26.txt
file27.txt
file28.txt
file29.txt
file30.txt
file31.txt
file32.txt
file33.txt
-------------------------

likewise, if a number comes in between a filename then also it should do human centric sorting.

e.g., create 3 files fi2m.txt, fi33d.txt, and fi3c.txt

Correct order:
--------------
fi2m.txt
fi3c.txt
fi33d.txt
----------

but Konqueror does this wrong!:
----------
fi2m.txt
fi33d.txt
fi3c.txt
----------

Thanks.
Comment 1 Mohd Asif Ali Rizwaan 2005-05-08 02:09:05 UTC
Created attachment 10937 [details]
list 33 mp3 files which are wrongly (not human friendly) sorted 

you can see in that Attachment that the files are not sorted in human friendly
way. Here are the files with 'numbers' in between them and in Correct Human
Readable Sort Order:
------------
a1txt
a10axt
a1111test
a1213again
a2txtfile
a20file
a21bile
------------

Incorrect Konqueror order: (see attachment)
------------
a10axt
a11111txt
a1213again
a1.txt
a20file
a21bile
a2txtfile
-----------
Comment 2 Maksim Orlovich 2005-05-08 02:12:28 UTC

*** This bug has been marked as a duplicate of 91391 ***