import arcpy fc = 'c:/data/base.gdb/well' fields = ['WELL_ID', 'WELL_TYPE'] # Use ORDER BY sql clause to sort field values for row in arcpy.da.SearchCursor( fc, fields, sql_clause=(None, 'ORDER BY WELL_ID, WELL_TYPE')): print(u'{0}, {1}'.format(row[0], row[1]))