title: Sorting cv::Mat in OpenCv
body: <p>Is there an equivalent function in OpenCV similar to <code>[srtd,srtdinds] = sort(dst,'ascend');</code> in Matlab? I have tried <code>cv::sortIdx(source, dst, cv::SORT_ASCENDING);</code> but it doesn't work. My source <code>Mat</code> contains a single column.</p>