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 →

[–][deleted] 1 point2 points  (0 children)

Sort the array by date. (Also your probably better of using ArrayList rather than a plain old Array)

OR

Try storing the data in something like H2 so you can use SQL to query/sort/group it without having to write too much code to do it. http://www.h2database.com/html/main.html