better sorting behavior