Hi there.

I have a dataset with 2001 variables, where I want to sort each of variables 2 to 2000 in a descending order. I have tried gsort, but it sorts all variables by the 2nd variable.
The dataset is a merge of 569 t-statistics from 2000 datasets, and I want the t-statistics in each variable to be descending. Hence, Y=1,...,2000 and X=1,...,569, and I want X to be descending in each Y.

How can I do that?

Thank you.