Remove the 'cmp' keyword from a call to 'sort()'

This keyword does not exist in Python 3, and 'key' should be used instead.

Change-Id: I0f92a1e3d389b491bf138c215e11e68fddc15477
Merge "Remove the 'cmp' keyword from a call to 'sort()'"