Added sorting of the matrix
Added important note