applied new sorting