Added sorting to the entities in app resource