Opened 17 years ago

Closed 10 years ago

#2978 closed Patch (fixed)

Add option to sort files with natural/numerical order algorithm + select collation

Reported by: dergrinch Owned by:
Priority: normal Component: FileZilla Client
Keywords: file sort order Cc: dergrinch
Component version: Operating system type:
Operating system version:

Description

It would be nice if you add an option to sort the folder and files with the natural order algorithm. So sort e.g. 1, 2, .., 8, 9, 10, 11 instead of 1, 10, 11, 2, [...], 8, 9.

Attachments (1)

natsort-2978.patch (9.5 KB ) - added by Marcu 11 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 by andrew, 14 years ago

Keywords: file sort order added
Summary: Add option to sort with natural order algorithmAdd option to sort files with natural/numerical order algorithm (similar to windows explorer)

To clarify, Windows Explorer has a combined alpha/numerical sort, e.g.

file_1_normal
file_2_normal
file_3_normal
file_10_would_be_nice
file_100_would_be_nice

Related file-sort-order tickets : 5223, 5576

Thanks for the great work on filezilla - really appreciated!

comment:2 by Alexander Schuch, 12 years ago

It should also be possible to sort case-sensitive or case-insensitive.

comment:3 by Alexander Schuch, 12 years ago

Taken from closed #2675: It should be possible to select a collation to be used for sorting (see http://www.icu-project.org/).

comment:4 by Alexander Schuch, 12 years ago

Summary: Add option to sort files with natural/numerical order algorithm (similar to windows explorer)Add option to sort files with natural/numerical order algorithm (similar to windows explorer) + select collation

comment:5 by Alexander Schuch, 12 years ago

Summary: Add option to sort files with natural/numerical order algorithm (similar to windows explorer) + select collationAdd option to sort files with natural/numerical order algorithm + select collation

in reply to:  description comment:6 by stephaniehobson, 12 years ago

Replying to dergrinch:

It would be nice if you add an option to sort the folder and files with the natural order algorithm. So sort e.g. 1, 2, .., 8, 9, 10, 11 instead of 1, 10, 11, 2, [...], 8, 9.

The number sorting would be nice to have but the alphabetical sorting is driving me batty. Ant, Bat, Cat, alligator, bug, crab should be sorted: alligator, Ant, Bat, bug, Cat, crab.

by Marcu, 11 years ago

Attachment: natsort-2978.patch added

comment:7 by Alexander Schuch, 11 years ago

Type: Feature requestPatch

comment:8 by Tim Kosse, 10 years ago

Resolution: fixed
Status: newclosed

Natural sort has been implemented a while ago in 3.9.0-beta1. This ticket is since redundant.

Nonetheless, a cursory glance at your patch showed the following issues:

  • Introduction of a glib dependency. New library dependencies need a configure check and the libraries to link against need to be updated as well in order to avoid underlinking.
  • Lack of user choice which sort algorithm to use. In particular, natural sort has performance issues with very large directory listings.
Note: See TracTickets for help on using tickets.