added sort to column names, added test.