Add some sort functionality. uncomplete