Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83693 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45585 invoked from network); 24 Feb 2015 19:49:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Feb 2015 19:49:09 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.46 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.220.46 mail-pa0-f46.google.com Received: from [209.85.220.46] ([209.85.220.46:34855] helo=mail-pa0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9F/14-24698-5B5DCE45 for ; Tue, 24 Feb 2015 14:49:09 -0500 Received: by padfa1 with SMTP id fa1so38509118pad.2 for ; Tue, 24 Feb 2015 11:49:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=wl47dE6v0Zz1mZS+jGoiOakbdkyGkW2tZzh4Wq83wgQ=; b=EvLO5yL+5RNvUCv+MvqK1TyvBP4qwB5zmreBP2GUmqe8M6H4T3V2r9X8ndv5/jWCzg FSXtk9YqhxyCsiS5yj1ZYaa+U2/BVBDf4td3SSNFOwNc39ho6gnzVSfOb/bBR+8NZ+UZ 5H3BeFoYRD9kD8bVYmR6bq3+j9B3ck7zN4cJYsnYRhPWeW2SznnT4uRa6KAcKsaNTL+k uvqXZ4yrFKuT1ubQT2+rsXbH7kSUqXgWXT3eEipNrXvQBk6VooagoTPvk9N92zI1ehHX L8FbiWcsg9XrFmvtJ/Yb08QKTf0twfmkgaswk/dSEH5DFUnxAPcTAgBcX7YjXQZc5sUI QgLQ== X-Received: by 10.70.128.79 with SMTP id nm15mr2053884pdb.104.1424807346614; Tue, 24 Feb 2015 11:49:06 -0800 (PST) Received: from Stas-Air.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by mx.google.com with ESMTPSA id fc6sm9592097pab.6.2015.02.24.11.49.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Feb 2015 11:49:06 -0800 (PST) Message-ID: <54ECD5B1.7070202@gmail.com> Date: Tue, 24 Feb 2015 11:49:05 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Thomas Gielfeldt , internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Feature request and RFC From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > I've made PR proposing a feature request: A new interface Sortable. > > https://github.com/php/php-src/pull/1116 > > If possible, I would like to create and RFC describing this in more detail, > and perhaps get a voting on. Can't you sort any class that provides ordered list of elements and Comparable or some kind of comparison callback by a generic algorithm? Interface with 11 functions, all similar but slightly different, seems unoptimal. -- Stas Malyshev smalyshev@gmail.com