Fix WFS SortBy support for OGR layers (#4878)