Union[Map[Sort, TakeList[#, {2, 2}] & /@ Permutations@Range@4, {2}]]
Running the above code yields the following result:
{{{1, 2}, {3, 4}}, {{1, 3}, {2, 4}}, {{1, 4}, {2, 3}}, {{2, 3}, {1,
4}}, {{2, 4}, {1, 3}}, {{3, 4}, {1, 2}}}
How can I add/modify the code to further obtain the desired result as follows?
{{{1, 2}, {3, 4}}, {{1, 3}, {2, 4}}, {{1, 4}, {2, 3}}}