Sorting elements
Example
A=
What kind of ranking do you want to sort:
sorting by total elements
sorting by row
sorting by column
The size of the input matrix is:
X