Fixed TraitsListObject.sort for Python 3, along with tests.