Sorts each row or each column of a matrix. The function sort sorts each matrix row or each matrix column in ascending or descending order. So you should pass two operation flags to get desired behaviour. If you want to sort matrix rows or columns lexicographically, you can us
(Mat src, Mat dst, int flags)
source not stored for this graph (policy: none)