basic sort functionality, might be of use... later!