Added the sort functionality + highest card and added a test case.