Definition (shortlex order)

The shortlex ordering on $\N^m$ is the total order defined by $(n_1, \ldots, n_m) < (n_1', \ldots, n_{m}')$ iff either