no chance to use stl's sort here?