Lexicographic ordering on the unit square