Made a fix to sorting in dataset logic and removed reverse() call.