Sort the list of apps for each permission.