As quoted from Andrea Aime <[EMAIL PROTECTED]>:
> Geoserver uses feature sorting, so it works, but only if you specify
> it in the Query apparently?
For those keeping notes (or trying to get their own question answered by
searching through the archives): this way of sorting does not currently
work with gt2-2.4-M4:
final FeatureCollection fc = source.getFeatures(filter);
final SortBy rt = ff.sort(sortField, SortOrder.DESCENDING);
final FeatureList fl = fc.sort(sort);
(it will return null) but this does:
final DefaultQuery query = new DefaultQuery( typeName, filter);
final SortBy rt = ff.sort(sortField, SortOrder.DESCENDING);
query.setSortBy(new SortBy[] { sort });
final FeatureCollection fc = source.getFeatures(query);
Regards,
--
-- Gertjan van Oosten, [EMAIL PROTECTED], West Consulting B.V., +31 15 2191 600
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel