(REQUEST FOR COMMENT)  safely sort heterogeneous collections on Python 2 and 3