OrderData function

Orders rows and columns of data.