I cannot seem to sort a 2 dimensional c array with std::sort. I can however sort a one dimensional array. This is in a case where I am being handed a c array in a c++ progra
std::sort() requires the objects it's used to sort to be MoveAssginable.
std::sort()
Arrays are not MoveAssginable (nor assignable at all).
Try using an array of structures or std::pairs instead.
std::pair