Sunday 14 May 2017

arcgis desktop - How to permanently sort attribute table records without new output?


How to permanently reclassify "Sort" the attribute table records based on a field value ? I try the geoprocessing tool Sort (Data Management), but this tool always need to write a new output feature or table with a correct values, what I need is to permanently sort the value on the same table or feature class.



Answer



I don't think such a tool exists. However you can create a model:




  1. Sort the origin feature class and therefore it creates a new feature class (e.g. SortedFC)




  2. Delete the origin feature class





  3. rename the SortedFC to the origin feature class.




With this easy model you can achieve your effect.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...