`rclist` is constructed from a `dict.items()` call. On Python 3, this returns an iterable view of the dictionary, not a list. So it doesn't have a `.sort()` method, but `sorted(rclist)` will work.