Sorting the rows of a matrix does not work. The values are ordered [1, 10, 11, 2, 3, 4, 5] and not as I expected.
This happens when you sort a StringMatrix with numbers in it. Use convert(ValueType.DOUBLE) to transform the matrix into a DoubleMatrix before sorting.