[Mpxj-developers] Sorting by Task.getStart()
Multi platform library to read and write schedule data
Brought to you by:
joniles
|
From: Blaine <bla...@ya...> - 2013-12-31 18:46:42
|
Hi, I'm using MPXJ to pull out all the tasks and do some reporting with the results. Once I have all my Task objects, I want to present the contents sorted by the Start Date. Currently I have a List containing all my Task objects, but I'd like to display them sorted based on the result of Task.getStart(). I'm writing this in Groovy/Java. I haven't been able to figure out how to do the sort. From what I read, I think there's something close to possible since it implements Comparable, but I can't figure out how. Any code examples of how to do this? Thanks in advance, Blaine |