Java Programming - Sorting LinkedList
Hi!
I'm trying to sort a LinkedList.
That LinkedList contains some objects called packet, each packet have an attribute called hour.
I'd like to sort the LinkedList by the hour component of its objects(packets).
I've no idea how to do it using any API, I've tried with Collections.sort(...) but it doesn't compiles....
Could anybody post anything such an example?
Thank you very much!

