List Task 3
I created a student class where I give student all the details then created objects of student in main class and stored them in an ArrayList of student type now for sorting it as its an student type object cant be sorted directly I use comparator there I use comparing for first condition and thencomparing for second condition if they have similar names and then pass that comparator to sort() thats how the list got sorted with the given condition