sorting revision