Ravi C | Fixed sorting