started on sort functionality