[TYPO3-mvc] Sorting Extbase ObjectStorage

David Schreiber flashmasterdash at gmail.com
Thu Jan 21 14:43:12 CET 2010


Hello everybody,

When accessing my objects by a repository, I can easily sort the
objects I get by creating an appropriate query. But ObjectStorages
seem to contain an unsorted array of my objects (or I don't understand
how the objects are sorted inside).

Is there a way to sort an ObjectStorage by a specific property of the
contained objects (in my case the sorting property)?

Or would I need to write a small sorting function for this?

Thank you,
David Schreiber


More information about the TYPO3-project-typo3v4mvc mailing list