Add a sorting method for acl resolution