From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: [PATCH] use natural ordering to display list of branches. Date: Fri, 06 Jun 2008 17:17:02 -0700 Message-ID: <7vej7aqetd.fsf@gitster.siamese.dyndns.org> References: <484969F0.1030704@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "Johannes Schindelin" , "Brandon Casey" , "Paolo Bonzini" , git@vger.kernel.org To: "Cedric Vivier" X-From: git-owner@vger.kernel.org Sat Jun 07 02:18:12 2008 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1K4m8I-000598-JA for gcvg-git-2@gmane.org; Sat, 07 Jun 2008 02:18:10 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752744AbYFGARS (ORCPT ); Fri, 6 Jun 2008 20:17:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752895AbYFGARS (ORCPT ); Fri, 6 Jun 2008 20:17:18 -0400 Received: from a-sasl-fastnet.sasl.smtp.pobox.com ([207.106.133.19]:41478 "EHLO sasl.smtp.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752382AbYFGARR (ORCPT ); Fri, 6 Jun 2008 20:17:17 -0400 Received: from localhost.localdomain (localhost [127.0.0.1]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id 9445114CC; Fri, 6 Jun 2008 20:17:16 -0400 (EDT) Received: from pobox.com (ip68-225-240-77.oc.oc.cox.net [68.225.240.77]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTPSA id D29E414CB; Fri, 6 Jun 2008 20:17:07 -0400 (EDT) In-Reply-To: (Cedric Vivier's message of "Sat, 7 Jun 2008 02:13:36 +0200") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) X-Pobox-Relay-ID: 15D9D592-3427-11DD-A514-F9737025C2AA-77302942!a-sasl-fastnet.pobox.com Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: "Cedric Vivier" writes: > On Sat, Jun 7, 2008 at 1:06 AM, Johannes Schindelin > wrote: >>> On Fri, Jun 6, 2008 at 11:04 PM, Brandon Casey wrote: >>> > But can't that be just as easily done by piping through sort? (I >>> > understand there is a platform which lacks the sort utility, boohoo) >>> >>> Yes, but sort does not have a natural sort option afaik. >> >> sort -n > > Hi! > > It is not natural sort but usual boring non-natural numeric sort ;) > With the use-case in original post the list would appear exactly the > same than with strcmp sort. Somebody suggested strvercmp(); how does the natcmp() compare with it?