This function simply uses sort.list function in R. The reason for using it is that one wants the sort to carry along all columns.
An input matrix with several columns
The column number with reference to which one wants to sort
A sorted matrix
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.