entities are now sorted