sort by class name since types are not orderable in py3