<?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>topic Definition Query Kills Sorting in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/definition-query-kills-sorting/m-p/183652#M9029</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have&amp;nbsp;a layer that I have sorted. When I select features or use the "I" button the results are sorted as expected. When I apply a definition query to the layer, the results are no longer sorted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know why this is happening?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Randy McGregor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 03 Feb 2018 00:35:28 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2018-02-03T00:35:28Z</dc:date>
    <item>
      <title>Definition Query Kills Sorting</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/definition-query-kills-sorting/m-p/183652#M9029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have&amp;nbsp;a layer that I have sorted. When I select features or use the "I" button the results are sorted as expected. When I apply a definition query to the layer, the results are no longer sorted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know why this is happening?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Randy McGregor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Feb 2018 00:35:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/definition-query-kills-sorting/m-p/183652#M9029</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-02-03T00:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Query Kills Sorting</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/definition-query-kills-sorting/m-p/183653#M9030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you posted this question under Web GIS, am I correct in assuming you are interacting with this layer in the AGOL or Portal map viewer?&amp;nbsp; Or, are you using this layer in a desktop client?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And when you say you "have a layer," what kind of layer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Feb 2018 14:52:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/definition-query-kills-sorting/m-p/183653#M9030</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-02-04T14:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Query Kills Sorting</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/definition-query-kills-sorting/m-p/183654#M9031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The mxd is authoring a map service, so step one is to get data to sort in mxd.&lt;/P&gt;&lt;P&gt;I have actually gotten it to sort by changing the "Search Order" parameters on the Definition Query tab from "spatial" to "by attribute."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I select the features in the map service, they do NOT sort correctly. The sort field is a date field and maybe that is introducing complexity the software can't handle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The features are wells with one for each sample date, so they are stacked. When you select one, you are selecting all wells stacked in that location, and the Portal for ArcGIS popup window is not sorting them by date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Randy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Feb 2018 16:52:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/definition-query-kills-sorting/m-p/183654#M9031</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-02-04T16:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Query Kills Sorting</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/definition-query-kills-sorting/m-p/183655#M9032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you sort the information by simply doing this on a field (or multiple fields) in the attribute table or did you use the&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/sort.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/sort.htm"&gt;Sort—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp; tool that creates a new output where the resulting featureclass or table is sorted?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Feb 2018 21:25:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/definition-query-kills-sorting/m-p/183655#M9032</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2018-02-04T21:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Query Kills Sorting</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/definition-query-kills-sorting/m-p/183656#M9033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The latter - I used the sort tool. The records are "physically" sorted. The popup window in Portal for ArcGIS is the only thing that doesn't know this &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Randy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 14:44:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/definition-query-kills-sorting/m-p/183656#M9033</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-02-05T14:44:24Z</dc:date>
    </item>
  </channel>
</rss>

