cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lon Varscsak <>
Subject Re: Ordering a list and returning the ordered version
Date Mon, 12 Oct 2015 20:07:27 GMT
I agree Hugi, I actually have added at least orderedList() to my fork
because it's handy.

On Mon, Oct 12, 2015 at 3:09 AM, Hugi Thordarson <> wrote:

> Hi all.
> I’ve seen orderList() in Ordering and Property which sort the list in
> place and return nothing, but is there a method to order a list and return
> a copy?
> If not, would you be opposed to copying EOF’s API for this? ERXKey (EOF’s
> equivalent of Cayenne’s Property) has two methods “sort()” which sorts a
> list in place, and “sorted()” which returns a sorted copy of the list. So,
> this would probably mean jsut adding “orderedList()” to Cayenne’s Ordering
> and Property classes.
> Cheers,
> - hugi

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message