sort entities before adding to layer