This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
if your data is coming from a database, i would prefer to do the sorting in the query itself rather than code unless
it involves user sorting a subset of data shown in UI, at that point i would use it in code.