Given an array of distinct integers `nums`, return all possible orderings (permutations). Return the list of permutations sorted, for a deterministic result.