Urutan Leksikografis

and also to look at higher terms first, that means ordering