Fixed sorting of entities in collection detail view.