From: "Mark David Dumlao" <stuffinator@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Non-case sensitive alphabetical sorting
Date: Tue, 22 Jul 2008 11:16:16 +0800 [thread overview]
Message-ID: <3951a2200807212016m4313a976i55cc1178f745b808@mail.gmail.com> (raw)
In-Reply-To: <48848B58.9020304@wrkhors.com>
I'm sorry, I wasnt clear in my original post.
When using gnome in ubuntu, clicking the sort by name in nautilus sorts using
[Aa]-[Zz]
When using gnome in gentoo, clicking the sort by name in nautilus yields
A-Z-a-z.
The same thing happens for coreutils ls, and so on.
Is there any file or configuration I have to check to use case
insensitive sorting
in gnome?
On Mon, Jul 21, 2008 at 9:12 PM, Steven Lembark <lembark@wrkhors.com> wrote:
> Mark David Dumlao wrote:
>>
>> When ordering items by name, a separate and distinct sequence is scene for
>> A-Z before the sequence for a-z. This is the expected behavior. What might i
>> need to look up to intermix [Aa]-[Zz]?
>
>
> Schwartzian Transform is the perlish version of a
> technique from LISP: create a compound structure
> with the output as payload:
>
> my @sorted
> = map
> {
> $_->[-1]
> }
> sort
> {
> $a->[0] cmp $b->[0]
> }
> map
> {
> my $sortval = uc $_;
>
> [ $sortval, $_ ]
> }
> @unsorted_text;
>
> You can use the basic technique to sort anything
> (multi-level sorts, numeric, whatever). Same basic
> process works in other languages that support anon
> arrays or structs.
>
>
> --
> Steven Lembark 85-09 90th St.
> Workhorse Computing Woodhaven, NY, 11421
> lembark@wrkhors.com +1 888 359 3508
>
>
--
thing.
next prev parent reply other threads:[~2008-07-22 3:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-18 23:49 [gentoo-user] Non-case sensitive alphabetical sorting Mark David Dumlao
2008-07-19 7:02 ` Neil Bothwick
2008-07-19 7:05 ` Sebastian Günther
2008-07-21 13:12 ` Steven Lembark
2008-07-22 3:16 ` Mark David Dumlao [this message]
2008-07-22 3:50 ` Albert Hopkins
2008-07-22 4:26 ` Mark David Dumlao
2008-07-22 4:52 ` Albert Hopkins
2008-07-22 4:54 ` [gentoo-user] " Nikos Chantziaras
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3951a2200807212016m4313a976i55cc1178f745b808@mail.gmail.com \
--to=stuffinator@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox