Hi all, first post here so let me know if I filled this out wrong.
I am working on an add-in that uses the postfix clause of a queryfilter to order the results. I ran into a bug where a feature layer sourced from a shapefile doesnt sort correctly or at all (just returns rows in order of object id when my postfix was for a different column ascending). When I saved the same feature layer to a geodatabase and added it back into the project, the postfix clause worked just as expected (sorted correctly).
Here was the code block in question:
var queryFilter = new QueryFilter
{
WhereClause = $"{treeLayerInfoFields["objectid"]} IN ({string.Join(",", batch)})",
PostfixClause = $"ORDER BY {treeLayerInfoFields["dbh_in"]} ASC",
};
Has anyone else ran into shapefile-sourced feature layers not working when querying with a postfix clause?
Thanks!