laptop and a wrench


The arcpy.da.SearchCursor queries produce inconsistent results if ordering is used.

Last Published: December 10, 2015 ArcGIS for Desktop
Bug ID Number BUG-000091958
SubmittedNovember 5, 2015
Last ModifiedNovember 24, 2020
Applies toArcGIS for Desktop
Version found10.2.2

Additional Information

Unable to reproduce


Remove the SQL postfix and use the Python sorted method instead of ORDER BY. cursor = sorted(arcpy.da.SearchCursor(fc_path, search_fields, where))

Steps to Reproduce

Bug ID: BUG-000091958


  • ArcGIS for Desktop

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic