Sort user permissions