Update check how a matrix is sorted by column sort