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]?
07-19-2008, 07:02 AM
Neil Bothwick
Non-case sensitive alphabetical sorting
On Sat, 19 Jul 2008 07:49:39 +0800, 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]?
That depends on what you are using to do the sort. The sort command uses
the -f option for case-insensitive sorting. Bash has an option to handle
this when presenting files that match a pattern, like *, see the man page.
A more detailed question will elicit a more detailed answer.
--
Neil Bothwick
Talk is cheap because supply exceeds demand.
07-19-2008, 07:05 AM
Sebastian Günther
Non-case sensitive alphabetical sorting
* Mark David Dumlao (stuffinator@gmail.com) [19.07.08 01:51]:
> 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]?
Maybe should state in what application you are trying to sort...
Sebastian
--
" Religion ist das Opium des Volkes. " Karl Marx
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
07-22-2008, 03:16 AM
"Mark David Dumlao"
Non-case sensitive alphabetical sorting
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.
07-22-2008, 03:50 AM
Albert Hopkins
Non-case sensitive alphabetical sorting
On Tue, 2008-07-22 at 11:16 +0800, Mark David Dumlao wrote:
> 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.
>
Not for me.
> Is there any file or configuration I have to check to use case
> insensitive sorting
> in gnome?
great! what's the correct place to set this globally so that both
terminal and gnome will see it?
--
thing.
07-22-2008, 04:52 AM
Albert Hopkins
Non-case sensitive alphabetical sorting
On Tue, 2008-07-22 at 12:26 +0800, Mark David Dumlao wrote:
[...]
> great! what's the correct place to set this globally so that both
> terminal and gnome will see it?
>
/etc/env.d
07-22-2008, 04:54 AM
Nikos Chantziaras
Non-case sensitive alphabetical sorting
Mark David Dumlao wrote:
On Tue, Jul 22, 2008 at 11:50 AM, Albert Hopkins <marduk@letterboxes.org> wrote: