Opened 11 years ago

Closed 5 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 6 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 Changed 9 years ago by andrew

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 Changed 7 years ago by Alexander Schuch

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

comment:3 Changed 7 years ago by Alexander Schuch

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 Changed 6 years ago by Alexander Schuch

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 Changed 6 years ago by Alexander Schuch

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

comment:6 in reply to:  description Changed 6 years ago by stephaniehobson

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.

Changed 6 years ago by Marcu

Attachment: natsort-2978.patch added

comment:7 Changed 6 years ago by Alexander Schuch

Type: Feature requestPatch

comment:8 Changed 5 years ago by Tim Kosse

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.