slightly better sorting