Hello everyone, I am quite new to programming in general. One thing that I wanted to do was to sorty my 2D array to a descending order, one way i found how to do it (on the internet in another programming language) was converting 2D array into a 1D array, sorting that and then converting it back to a 2D array. I can't seem to figure out how to convert the arrays. I have no idea on where to really start, I've gotten as far as
but even that gives me an error. Any help would be appreciated. Also n = rows, m = collums.