Sort category permissions