sort permissions
permission string cache for sort performance
sort packages by name