pep export: sort places and transitions