Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

it's just a misassumption, i guess. admittedly, the example is not helpful, too.

but what you get here, are the indices of the original, not the sorted array.

10 is the smallest element, and 4 is the index of it in your original Mat, so that goes front, while 110 at index 3 is the largest, so that goes to the end of the indices.