When allocating threads logically in multiple dimensions, there is generally a mapping from that N-dimensional space to a linear space. The dimension that varies the linear space least is the least significant dimension.
As an example, mapping a 2-dimensional (X,Y) coordinate to linear space might be determined using the expression (Y * width + X). Here, X is the least significant dimension and Y is the most significant dimension. Likewise, for a 3-dimensional (X,Y,Z) space, the expression might be (Z * width * height + Y * width + X). Here, X is still the least significant, but Z is the most significant. Your layout may not necessarily be the same, for example you may choose to map linear space to (Z * width * height + X * height + Y), in which case Y is the least significant dimension.