Re: Feature request and RFC
| From: | Stanislav Malyshev | Date: | Tue, 24 Feb 2015 19:49:05 +0000 |
| Subject: | Re: Feature request and RFC | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-83693@lists.php.net to get a copy of this message | ||
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