How to sort up a matrix?

Int type matrix, I want it to get sorted up from small to big and similar numbers should be next to each other.

17, 18,13

11,2,9

8,7,6

Should be transformed to

2,6,7

8,9,11

13,17,18

Thanks in advance.

I cant use lists.( assignment)

by CSHelpPlox via /r/csharp

Leave a Reply