| bisort | R Documentation | 
"bisorts" matrix according to rows and columns (and optionally removes empty rows, ie with no nonzero)
bisort(A, drop = F)
A | 
 matrix to sort  | 
drop | 
 logical flag whether to drop empty rows (=FALSE)  | 
Marcin Imielinski
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.