fixed accelerometer reading sort order