<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>idea Sort rows in existing feature class in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/sort-rows-in-existing-feature-class/idi-p/1371518</link>
    <description>&lt;P&gt;&lt;EM&gt;ArcGIS Pro 3.2.1; file geodatabase&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;As far as I can tell, there isn't a geoprocessing tool that can sort/reorder a FC's existing rows in a single step. For example, permanently sort a FC based on a number field.&lt;/P&gt;&lt;P&gt;The &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/sort.htm" target="_self"&gt;Sort&lt;/A&gt; tool outputs a separate FC, it doesn't sort the rows in an existing FC.&lt;/P&gt;&lt;P&gt;Could a "sort existing" tool be added?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Related:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/store-a-default-attribute-table-sorting-property/idi-p/1374848/highlight/true" target="_self"&gt;Store a default attribute table sorting property in geodatabase items&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jan 2024 15:02:19 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2024-01-26T15:02:19Z</dc:date>
    <item>
      <title>Sort rows in existing feature class</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/sort-rows-in-existing-feature-class/idi-p/1371518</link>
      <description>&lt;P&gt;&lt;EM&gt;ArcGIS Pro 3.2.1; file geodatabase&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;As far as I can tell, there isn't a geoprocessing tool that can sort/reorder a FC's existing rows in a single step. For example, permanently sort a FC based on a number field.&lt;/P&gt;&lt;P&gt;The &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/sort.htm" target="_self"&gt;Sort&lt;/A&gt; tool outputs a separate FC, it doesn't sort the rows in an existing FC.&lt;/P&gt;&lt;P&gt;Could a "sort existing" tool be added?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Related:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/store-a-default-attribute-table-sorting-property/idi-p/1374848/highlight/true" target="_self"&gt;Store a default attribute table sorting property in geodatabase items&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 15:02:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/sort-rows-in-existing-feature-class/idi-p/1371518</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-01-26T15:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sort rows in existing feature class</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/sort-rows-in-existing-feature-class/idc-p/1373321#M28135</link>
      <description>&lt;P&gt;For what it's worth, adding an attribute index to a field in a &lt;U&gt;mobile geodatabase&lt;/U&gt; table seems to sort the rows descending. (However, if the index is deleted, then the data seems to revert back to its original order.)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1705989914684.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92478iB4203EBA2FF8BA74/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1705989914684.png" alt="Bud_0-1705989914684.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(I'm not used to seeing the actual data being sorted due to an index, since I normally make indexes using Oracle data. If I understand correctly, ascending or descending doesn't matter for Oracle indexes, except for composite indexes.)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I left the Ascending checkbox blank when creating that index.&lt;BR /&gt;I wonder why it sorted the data descending, despite the index being sorted ascending, as shown in a SQL client:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1705995839038.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92482i0F03FBE249ECFB5B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_0-1705995839038.png" alt="Bud_0-1705995839038.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 14:49:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/sort-rows-in-existing-feature-class/idc-p/1373321#M28135</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-01-26T14:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sort rows in existing feature class</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/sort-rows-in-existing-feature-class/idc-p/1373515#M28148</link>
      <description>&lt;P&gt;This idea isn't really practical, and anything that looks like reordering in-place would actually be a multi-step recreation, renaming, and deletion bundled together, which wouldn't be any different than doing those steps manually oneself.&lt;/P&gt;&lt;P&gt;In terms of SQL itself, there is no default order for records. &amp;nbsp;Looking to the section of the SQL standard that defines the behavior of cursors,&lt;A href="https://www.iso.org/standard/76584.html" target="_self"&gt; ISO/IEC CD 9075-2 Information technology — Database languages — SQL — Part 2: Foundation (SQL/Foundation)&lt;/A&gt;, it clearly states (at least through SQL:99 that I have seen in person, but I assume the same language exists in later editions):&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;When the ordering of a cursor is not defined by an &amp;lt;order by clause&amp;gt;, the relative position of two rows is implementation-dependent.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The importance of that statement can't be emphasized enough.&amp;nbsp; The default ordering of records in a table is&amp;nbsp;&lt;U&gt;implementation dependent&lt;/U&gt;, and most vendors will state somewhere they don't guarantee a default ordering.&amp;nbsp; The&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/sort.htm" target="_blank"&gt;Sort (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt; gives a false-sense of assuredness to users because a table can be reconstructed a certain way, but Esri cannot guarantee the default ordering for every type of data store.&amp;nbsp; The main value, in my mind, of the Sort tool is to support spatial reordering of records so that indexing can be optimized to improve analysis performance in certain situations.&lt;/P&gt;&lt;P&gt;Do records in a file geodatabase tend to have a predicable default ordering?&amp;nbsp; Yes, but it is an implementation artifact tied to ObjectID ordering and indexing.&amp;nbsp; I am not sure if Esri has ever documented a guaranteed default ordering, so if order matters an ORDER BY clause should always be used.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 16:49:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/sort-rows-in-existing-feature-class/idc-p/1373515#M28148</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2024-01-23T16:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Sort rows in existing feature class</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/sort-rows-in-existing-feature-class/idc-p/1374621#M28172</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1371"&gt;@JoshuaBixby&lt;/a&gt;&amp;nbsp;is correct.&lt;BR /&gt;&lt;BR /&gt;Any concept of 'permanently' reordering rows, or fields, or something of the like in a database would be a full delete and rewrite of the entire table.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can you share with us what workflow of yours would be improved by this?&amp;nbsp; As you continue to add data, would you again want to keep deleting and rewriting the table to sort?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 19:46:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/sort-rows-in-existing-feature-class/idc-p/1374621#M28172</guid>
      <dc:creator>SSWoodward</dc:creator>
      <dc:date>2024-01-25T19:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sort rows in existing feature class</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/sort-rows-in-existing-feature-class/idc-p/1374834#M28188</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/604859"&gt;@SSWoodward&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a small UNIT_RATE table that users edit once per year.&lt;/P&gt;&lt;P&gt;When looking at the attribute table, the data doesn't make much sense when it's unsorted:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_1-1706278171486.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92921i37836EB333360C0B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_1-1706278171486.png" alt="Bud_1-1706278171486.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It only makes sense when it's sorted into groups. The user would navigate to a specific group and add an entry for the current year.&lt;/P&gt;&lt;P&gt;Sort into groups using a custom sort:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_0-1706277894506.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92920iFFB412C6FF2D95BE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bud_0-1706277894506.png" alt="Bud_0-1706277894506.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now the data makes more sense:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bud_2-1706278387041.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/92922i1AD497A662F65A2B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bud_2-1706278387041.png" alt="Bud_2-1706278387041.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When users go to edit the table each year, it's unrealistic to get them to do the custom sort in the attribute table each time. They just don't remember, get confused when they look at the data, and end up botching their edits.&lt;/P&gt;&lt;P&gt;I'd rather sort the table permanently myself, once per year, prior to the year-end edits. Either manually or on a schedule.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Edit:&amp;nbsp;&lt;SPAN&gt;I'm aware that maps/projects, .LYRX files, etc. can store sorting information. But we don't use those mechanisms in this case; we add the item from Catalog into various maps, as needed, since the table is only used occasionally.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 17:54:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/sort-rows-in-existing-feature-class/idc-p/1374834#M28188</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-01-26T17:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sort rows in existing feature class</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/sort-rows-in-existing-feature-class/idc-p/1374846#M28191</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/604859"&gt;@SSWoodward&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As mentioned in this post:&amp;nbsp;&lt;A href="https://community.esri.com/t5/community-feedback/quot-you-don-t-have-any-notifications-quot/m-p/1374840/highlight/true#M2098" target="_self"&gt;"You don't have any notifications"&lt;/A&gt;, there is an issue where the Esri Community system is not always sending email notifications about replies to posts.&lt;/P&gt;&lt;P&gt;Could you reply to this comment as a test, and then if I receive the reply, I'll let the Esri Community team know?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 14:56:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/sort-rows-in-existing-feature-class/idc-p/1374846#M28191</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-01-26T14:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sort rows in existing feature class</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/sort-rows-in-existing-feature-class/idc-p/1374904#M28196</link>
      <description>&lt;P&gt;Here is my reply!&amp;nbsp; I won't&amp;nbsp;@ you so we can tests a standard reply to your post.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 17:12:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/sort-rows-in-existing-feature-class/idc-p/1374904#M28196</guid>
      <dc:creator>SSWoodward</dc:creator>
      <dc:date>2024-01-26T17:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sort rows in existing feature class</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/sort-rows-in-existing-feature-class/idc-p/1381217#M28456</link>
      <description>&lt;P&gt;Related:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/order-by-clause-in-definition-queries/idi-p/1185325" target="_self"&gt;ORDER BY clause in definition queries&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 19:11:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/sort-rows-in-existing-feature-class/idc-p/1381217#M28456</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-02-12T19:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sort rows in existing feature class</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/sort-rows-in-existing-feature-class/idc-p/1399595#M29063</link>
      <description>&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-experience-builder-ideas/control-order-of-fc-features-in-popup-show-newest/idc-p/1399594#M2448" target="_self"&gt;Control order of FC features in popup (show newest feature first)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 11:56:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/sort-rows-in-existing-feature-class/idc-p/1399595#M29063</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2024-03-22T11:56:09Z</dc:date>
    </item>
  </channel>
</rss>

