Building a list of the actual column names instead of just their numbers
Doing sorting correctly