4-number-problem/Ordered by size/Matrix/Exercise

We consider the mapping

that assigns to a four-tuple the four-tuple

Describe this mapping by a matrix, under the condition