From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1KL8MN-0003w2-Jm for garchives@archives.gentoo.org; Tue, 22 Jul 2008 03:16:19 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7A437E050D; Tue, 22 Jul 2008 03:16:17 +0000 (UTC) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by pigeon.gentoo.org (Postfix) with ESMTP id 3CA29E050D for ; Tue, 22 Jul 2008 03:16:17 +0000 (UTC) Received: by ug-out-1314.google.com with SMTP id z27so366966ugc.49 for ; Mon, 21 Jul 2008 20:16:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=G23V3teIMr0s6wEeBVxOpWCF8N/tV1v6pSJ5f2R83SY=; b=N9phhPcohLZWnAshhf2347B83XCmmmjWkdLp6i9JKsTmjZCUv7f4hPfjNO6x9eoGfC RhWTjd9Ewle7faggoUQO8im7Wcbl9dwHOT4xCzMCGU988axqoaz55FNxpn6A2379Qmb6 zLOkgR2I6Cnl6wYHGNXntQsTnwFkvbvcamXX8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=ryEeZ3huHcJP2HJ1FXM7SM/O6igWvZKaw5HCXod+ZBGiPWzVZvZpge+Z+oi1GxsoFa JZ0fcNr1S2T8bPv0dgdT5l18Bjn71O76FitNKFYcMXl3X/Z021GcSdZ9CrJLOZojRTpy YHOQRqNNAgjP9AhiOdDACO7CtPEqo6Y+Lbva0= Received: by 10.66.234.13 with SMTP id g13mr2090000ugh.68.1216696576087; Mon, 21 Jul 2008 20:16:16 -0700 (PDT) Received: by 10.67.89.1 with HTTP; Mon, 21 Jul 2008 20:16:16 -0700 (PDT) Message-ID: <3951a2200807212016m4313a976i55cc1178f745b808@mail.gmail.com> Date: Tue, 22 Jul 2008 11:16:16 +0800 From: "Mark David Dumlao" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Non-case sensitive alphabetical sorting In-Reply-To: <48848B58.9020304@wrkhors.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6e2210230807181649v70ed83e1hc39b744b8e080a87@mail.gmail.com> <48848B58.9020304@wrkhors.com> X-Archives-Salt: 6d607e4a-76e2-4eee-8667-daad7308733c X-Archives-Hash: 727bcca2e0e9f758f486f0b73f31109c 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 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.