Sorting a 2-D aarray column wise

how do I sort 2-d array column wise only using sort function?

hello @priyeshant1104
if u have stored each column separately in vector or array.
then only it possible to sort using sort function otherwise it is not.