Adding layer of sorting; using correct column name in output.