update correct sorting