I have a list of objects that I get from the database, and I need to order it by a field, but I can't apply the order criteria on the orderby clause, I need to do it on java.
List<Cliente> listaClientesPorNomAp = new ArrayList<Cliente>();
listaClientesPorNomAp = (List<Cliente>) getSqlMapClientTemplate().queryForList("CLIENTES.obtenerClientesFiltroPorNomAndAp", filtroPaginacion);
List<Cliente> nonFilteredList = new ArrayList<Cliente>();
nonFilteredList.addAll(listaClientesPorNomAp);
HashSet<Cliente> filteredSet = new HashSet<Cliente>(nonFilteredList);
I want to order the list of 'Cliente' by the attribute docNumber. How can I do it?
Thanks!