We're updating the issue view to help you get more done. 

GeoServerFeatureSource creates a SortedSimpleFeatureCollection wrapper when no sorting is needed

Description

This happens because there are two ways to specify no sorting, null and SortBy.NO_SORT (an empty array) and the code is not handling the second consistently.
This in turn kills some visitor optimizations, not allowing visitors to reach the store.

Environment

None

Status

Assignee

Andrea Aime

Reporter

Andrea Aime

Triage

None

Fix versions

Affects versions

None

Components

Priority

Medium