editor: use stl for sorting