Hello Mick Smith,
I think I can help you out from this problem.Just check each and every class, run the application it will give you the desire result.
Please fill free if you have any doughts/confusion.
Emp2.java its is a simple POJO , you just replace this class as your requirment:
SortUtil.java the client code :here I am making the list of data & sorting by my choice.Here I am sorting by ID.
GenericSort.java , here is the main magic, the actual business logic is in this class:
enjoy
Thanks and regards,
S