List of orders from SQL query
I have a List returned from a call daoTemplate.query()
using rowMapper
.
SQL does column order, happens to be date column, asc order when I use List, I am always guaranteed that the list will be in the order defined by sql. can I depend on that the first element ( theList.get(0)
) is ALWAYS the earliest date (in this case)?
+1
source to share