Opened 15 years ago

Closed 15 years ago

#3596 closed enhancement (fixed)

Change from lexicographic sorting to natural sorting

Reported by: plasm Owned by: stippi
Priority: normal Milestone: R1
Component: Applications/Tracker Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

Right now, files are sorted a1, a10, a100, a1000, a101, a11. Sorting should be done naturally, which would yeild a1, a10, a11, a100, a101, a1000

Attachments (1)

natural_sort.patch (3.9 KB ) - added by plasm 15 years ago.
Implements the desired functionality

Download all attachments as: .zip

Change History (11)

comment:1 by aldeck, 15 years ago

Talked to plasm on #haiku, commenting so that everyone on haiku-bugs mailing list gets notified. Will have a look this weekend unless someone beats me to it :)

comment:2 by plasm, 15 years ago

I made a mistake when updating the attachment (forgot to check the box indicating I wanted it to replace the old one), so it appended a '2' on the end... I would appreciate it if someone could delete the second patch (with the '2'), and I will reupload it... this time making sure it replaces the original patch.

comment:3 by stippi, 15 years ago

Ok, I deleted the second attachment for you. Before you attach the improved patch again, please make sure to cleanup the coding style violations. See the file

<http://www.haiku-os.org/documents/dev/haiku_coding_guidelines>

comment:4 by plasm, 15 years ago

Okay, I cleaned up the patch, and re-uploaded it. Let me know if there are still style violations.

comment:5 by aldeck, 15 years ago

It seems most of those i pointed you on irc are still there. Please read the coding guidelines carefully. Regards

comment:6 by stippi, 15 years ago

Yes, I agree with aldeck. It's great that you worked on this patch! But anyone who is going to commit it will have to clean up the coding style violations. It's much better if you do this, so you learn these guidelines for when coding something for Haiku. Hope you understand! :-)

by plasm, 15 years ago

Attachment: natural_sort.patch added

Implements the desired functionality

comment:7 by mmadia, 15 years ago

patch appears to have been updated.

comment:8 by stippi, 15 years ago

Yes, much better now.

comment:9 by stippi, 15 years ago

Owner: changed from axeld to stippi
Status: newassigned

comment:10 by stippi, 15 years ago

Resolution: fixed
Status: assignedclosed

Thanks a lot! I've commited the patch with some modifications for clarity and which hopefully improve speed a bit in hrev29845.

Note: See TracTickets for help on using tickets.