Let pending_acls be sorted using .sort instead or sorted()

.sort sorts in-place while sorted() creates a new list, which is not
something required here.