adding sort functionality on columns