orderByFields

497
1
01-02-2020 08:32 AM
DanHuerter2
New Contributor II

I'm new to AppStudio and QT and I'm attempting to modify the Map Viewer template to return sorted results on a feature query.  I've modified the QueryParameters to be:

    QueryParameters {
        id: featureParameters
        maxFeatures: 25
        orderByFields: [
            OrderBy {
                fieldName: "NAME";
                sortOrder: Enums.SortOrderAscending
            }
        ]
    }

The maxFeatures change from the original 10 to 25 is being applied but my orderByFields 
doesn't appear to work.  What am I missing?
Tags (1)
0 Kudos
1 Reply
DanHuerter2
New Contributor II

After further investigation I determined that the order of my results was actually being set in the CustomListModel.qml.  

0 Kudos