I've been puzzling with this problem for hours, but I can't figure it out. Per observation, I need to generate 5 new variables, with the values from 5 existing variables sorted from lowest to highest.

For example, the shorter existing data set should become the larger one

Array

Array


How do I do this?

Thank you in advance.