Fix ordering on Python 3