Fix sort for height