sort task and entity names