Fixed the ordering of the observations