From: Michael Haggerty Date: Tue, 29 May 2012 05:21:47 GMT Subject: Re: Alphabetize git config --list Message-ID: <4FC45CEB.4070808@alum.mit.edu> In-Reply-To: <20120528212309.GA4220@sigill.intra.peff.net> On 05/28/2012 11:23 PM, Jeff King wrote: > On Mon, May 28, 2012 at 01:58:28PM -0700, Zach wrote: > >> I was wondering if it would be possible to alphabetically order git >> config --list by default. >> >> Essentially this >> $ git config --list | sort > > No, it's not a good idea; the order of keys is important. For example, > [...] Is the order of *keys* important, or only the order of *values* for a given key? I believe that one could sort the output by key as long as the values for each key are kept in their original order (i.e., sort stably by key). This would indeed make it easier to read the output. Michael -- Michael Haggerty mhagger@alum.mit.edu http://softwareswirl.blogspot.com/