Pass entities by reference to sorter