[jdom-interest] Sorting getChildren ?

Jason Hunter jhunter at collab.net
Thu Feb 8 16:24:59 PST 2001

Omar Bazavilvazo wrote:
> Hi!
> well, a silly question, how can i sort a List of Elements (lElms) into
> ascending order?
> Collections.sort(List) throws a exception...

Collections.sort(List, Comparator) because Element doesn't naturally
implement Comparable.  That's probably what the exception you got was
telling you.  

Would have been better if you'd included the exception.  Notice the FAQ
entry on how to submit bugs and ask questions.  One guideline is *give
the error*.


More information about the jdom-interest mailing list