Re: [dev] [sbase] [PATCH] ls: add option to reverse the sort order

From: Alexander S. <alex0player_AT_gmail.com>
Date: Fri, 4 Oct 2013 17:45:56 +0400

2013/10/4 Raphaël Proust <raphlalou_AT_gmail.com>:
> On Fri, Oct 4, 2013 at 2:32 PM, Alexander S. <alex0player_AT_gmail.com> wrote:
>> Uh, cannot this be achieved by piping output to tac?
>
> At which points someone asks why is there a sorted order at all in ls
> output… cannot this be achieved by piping output to sort?
sort(1) can only sort by name, which is clearly less powerful than we want.
So no, we cannot.
If we want to retain this patch, I'd suggest reversing array after
sorting, not multiplying by `sortorder' in comparison functions. This
avoids code duplication.
Received on Fri Oct 04 2013 - 15:45:56 CEST

This archive was generated by hypermail 2.3.0 : Fri Oct 04 2013 - 15:48:24 CEST