Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12084 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54517 invoked by uid 1010); 10 Aug 2004 20:16:18 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 53649 invoked from network); 10 Aug 2004 20:16:12 -0000 Received: from unknown (HELO mproxy.gmail.com) (64.233.170.200) by pb1.pair.com with SMTP; 10 Aug 2004 20:16:12 -0000 Received: by mproxy.gmail.com with SMTP id 77so215694rnk for ; Tue, 10 Aug 2004 13:16:12 -0700 (PDT) Received: by 10.38.78.1 with SMTP id a1mr1640941rnb; Tue, 10 Aug 2004 13:16:11 -0700 (PDT) Message-ID: <24e5f3b704081013163547c094@mail.gmail.com> Date: Tue, 10 Aug 2004 13:16:11 -0700 Reply-To: sterling@apache.org To: Rasmus Lerdorf Cc: sterling@apache.org, Andi Gutmans , Marcus Boerger , John Coggeshall , internals@lists.php.net, John Coggeshall In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <5.1.0.14.2.20040730153406.02ec00f0@127.0.0.1> <24e5f3b70408101219286cd6d@mail.gmail.com> Subject: Re: [PHP-DEV] Sorting Bug / Wrong behavior? From: sterling.hughes@gmail.com (Sterling Hughes) no argument there, having a few more reasonable sort options/methods makes sense to me, so long as they offer new functionality (as opposed to fixing an "inconsistency") and don't affect the default behaviour... -sterling On Tue, 10 Aug 2004 12:59:09 -0700 (PDT), Rasmus Lerdorf wrote: > On Tue, 10 Aug 2004, Sterling Hughes wrote: > > i don't think sort() should be changed - this is how php works, for > > better or sometimes worse, changing it any other way would break BC, > > and it doesn't make much sense. > > I agree that we should keep the generic sort function the same. Might be > nice to add some more sort flags though. It's somewhat annoying that the > sort_string sort option doesn't use strcoll, for example, so you have to > use a usort to get proper string sorting in most languages. > > -Rasmus >