mw-sort-wmf-branches: simplify implementation

Use the `key` optional argument to sequence.sort() to simplify the
sorting code.

Change-Id: I63639d228e8e24846d710bc6f18dbff68a1b4421