my professor has asked to sort a 2d char array by column so the attached array he wants sorted is
unsorted sorted last column
Lcekoeddhoffbmg Balgfcaelhfkgeb
Lkcmggjcdhhglif Kmlhmhcddfoeilc
Cgldjhcekjigcdd Cgldjhcekjigcdd
Cgldjhcekjigcdn Lkcmggjcdhhglif
Bffmdbkcenlafjk Lcekoeddhoffbmg
Fggdijijegfblln Jjlncnimjldfedj
Jjlncnimjldfedj Bffmdbkcenlafjk
Amliglfohajcdmm Amliglfohajcdmm
Balgfcaelhfkgeb Fggdijijegfblln
Kmlhmhcddfoeilc Cgldjhcekjigcdn
but the catch is that he wants the entire row to be the same characters so if we are sorting the last column we would just move the row up or down accordingly. i have no idea on how to even get this started any help would be much appreciated