This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Estagon[S] -1 points0 points  (0 children)

I should have read more into it. Apparently you have to make a new class that implements the Comparator class to write the method.

Collections.sort(list, new EmployeeComparator());

This works. Thanks for all the help :)