Opened 12 years ago
Closed 12 years ago
#9515 closed bug (invalid)
Issue with natural sorting
Reported by: | mmadia | Owned by: | axeld |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Applications/Tracker | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description (last modified by )
#!/bin/bash files="001-.txt \ 001.txt \ 01-.txt \ 01.txt \ 1-.txt \ 1-0-.txt \ 1-0.txt \ 1.txt" for file in $files; do touch $file done
~/Desktop/test> ls -1 001-.txt 001.txt 01-.txt 01.txt 1-.txt 1-0-.txt 1-0.txt 1.txt test-files.sh
Attachments (1)
Change History (5)
by , 12 years ago
Attachment: | tracker-natural-sorting-bug.png added |
---|
comment:1 by , 12 years ago
Description: | modified (diff) |
---|
comment:2 by , 12 years ago
follow-up: 4 comment:3 by , 12 years ago
Can you please elaborate what issue you see here? I can't see anything wrong with the screen shot, actually. The leading zero is being ignored AFAICT, and the characters afterwards are responsible for the actual ordering.
comment:4 by , 12 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Replying to axeld:
Can you please elaborate what issue you see here? I can't see anything wrong with the screen shot, actually. The leading zero is being ignored AFAICT, and the characters afterwards are responsible for the actual ordering.
For some reason, I didn't consider that the leading zero would be ignored.
Note:
See TracTickets
for help on using tickets.
Maybe duplicate: #9319