Sort operates by doing pairwise comparisons of elements, applying the comparison function to them. The results of the function tell it how to order the two elements relative to each other. In this case, the results are random, independent of the values being compared, so it sorts into random order.
Caution: Contents may have been coded under pressure.