Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Sorting columns within a row, alphabetically

$
0
0

I have let's say I have rows in the following order:

SNname1grade1name2grade2name3grade3
1Alice97Bob90Carl80
2Bob80Alice100Carl95
3Alice100Carl80Bob90

Is there a way to keep the rows ordered 1 - 2 - 3, but alphabetize the columns by the student's names, while keeping the grade associated with each student?
Meaning, all rows will be in the format

SN | Alice | grade1 | Bob | grade2 | Carl | grade3 |

Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>