cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hugi Thordarson <>
Subject Ordering a list and returning the ordered version
Date Mon, 12 Oct 2015 10:09:02 GMT
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.

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