bug#26741: Numeric sort in ls

2017-05-02 Thread Tony Malykh
It should be possible from technical point of view to add a new option --numeric-sort or --natural-sort that wouldn't conflict with -X or any other sort options of ls. I am a C++ developer myself, so I can implement this new options myself. Would the community of coreutils developers be interested

bug#26741: Numeric sort in ls

2017-05-02 Thread Andreas Schwab
On Mai 01 2017, Tony Malykh wrote: > It appears that version sort (-v) option achieves exactly that. > However, the problem with it is that it seems to be incompatible with > extension sort (-X) option. This isn't limited to these two option. Generally, ls only supports a single sort option, wi

bug#26741: Numeric sort in ls

2017-05-01 Thread Eric Blake
tag 26741 notabug thanks On 05/01/2017 07:50 PM, Tony Malykh wrote: > Hi all, > > I am wondering if there is a way to do a numeric sort in ls? Thanks for the report; the quick answer is that sort can already do what you want, so post-process your ls output with sort. > Here is a concrete exampl

bug#26741: Numeric sort in ls

2017-05-01 Thread Tony Malykh
Hi all, I am wondering if there is a way to do a numeric sort in ls? I am aware of version sort option -v and blow I explain the problem with it. What I'd like to achieve: Suppose I have files with numbers in their names.: p1.py p2.py p11.py It appears that version sort (-v) option achieves exac