Sortable functions for Doctrine collections library