set correct sorting