My goal is to sort a matrix using a specified matrix of indexes.
For example, let\'s say this is my input matrix:
A B C D E F G H I
An