The selection results for Ifeatureclass have recently been selected again, and the results of the re-selection are sorted by two attributes. The first selection is made by Ifeatureclass.select method, and the result of the selection is stored with the Iselectionset type variable SELECTIONSET1. Then you need to select the features in the SelectionSet1 again and sort the selection results, This is the problem: when you use the Iselectionset.search method for query selection and sorting, if you add a sort word (order by xxx) after the Iqueryfilter.whereclause selection statement, you get an error: The SQL command did not end correctly.
Questions: Iselectionset.search method selection does not support sorting by attributes
reason: not clear, suspect AE is not supported or own method is incorrect
Workaround: The second query result selectionset1.select is stored through the Iselectionset variable SelectionSet2, and the data in SelectionSet2 is sorted by attribute value using the Itablesort interface. The code is as follows:
Selection and sequencing of ifeatureclass selection results