<?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 Re: Sorting ID Results 4.x in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sorting-id-results-4-x/m-p/433396#M39945</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert.  I never knew that was there.  That corrects the problem in arcmap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im guessing that doesn’t publish with the service?  I republished it, It still doesn’t sort the ID results in the javascript map&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Feb 2018 15:54:49 GMT</pubDate>
    <dc:creator>JeffSauder</dc:creator>
    <dc:date>2018-02-22T15:54:49Z</dc:date>
    <item>
      <title>Sorting ID Results 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sorting-id-results-4-x/m-p/433392#M39941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am looking for a way to sort the identify results using an identifytask and identifyparameters.&amp;nbsp; What is needed is to show ID results sorted by certain fields (for example, date descending so the users sees the newest feature first).&amp;nbsp; I tried sorting the tables in the ArcMap project, which seem to persist, but do not carry over to the ArcGIS Server published REST service.&amp;nbsp; I have also gone through the identify parameters and ID task trying to find if there is any way to set a sort field.&amp;nbsp; I do not use any sort of widget or popup for these results, I create my own ID display window by breaking down the JSON of the results.&amp;nbsp; I could sort these after the fact, which is what I might have to do, but before I go through all that, I just thought I'd check to see if there's something simple that I'm overlooking that would sort the results when the identify is performed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any solutions / suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 14:16:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sorting-id-results-4-x/m-p/433392#M39941</guid>
      <dc:creator>JeffSauder</dc:creator>
      <dc:date>2018-02-22T14:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting ID Results 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sorting-id-results-4-x/m-p/433393#M39942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Click on the Display tab for the feature in question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Display Expression area click the Expression button and build an expression.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/397172_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is an example of an expression I built for my service meter locations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[BillingFileComplete.ServiceAddress] &amp;amp; " : "&amp;amp;&amp;nbsp; [ServicePoint.Detail] &amp;amp; " :" &amp;amp; [BillingFileComplete.Name]&amp;nbsp;&amp;nbsp; &amp;amp;&amp;nbsp; " : "&amp;amp; [BillingFileComplete.EquipMapLocation]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will sort results by Service Address, then Name.&amp;nbsp; pretty much whatever you want&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 14:26:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sorting-id-results-4-x/m-p/433393#M39942</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2018-02-22T14:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting ID Results 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sorting-id-results-4-x/m-p/433394#M39943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the reply, much appreciated.  I had already tried that, I notice that it does not sort.  I wouldn’t doubt if I’m doing something wrong here.&lt;/P&gt;&lt;P&gt;I have links to the examples below.  This is using ArcMap 10.3.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is where I went to set this in ArcMap.  Just to verify that’s where you had mentioned setting this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;https://community.esri.com/docs/DOC-11451-sort1jpg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression I set was “[GBAGIS.dbo.tog_DevAgr_From_Eden.EffectiveDate] &amp;amp; " -  " &amp;amp; ”&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the result from the expression using the date and AgreementID in the expression (this is in ArcMap, I didn’t publish this to AGS), they don’t show in any logical order.  I even tried ordering the attribute table for that feature class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;https://community.esri.com/docs/DOC-11452-sort2jpg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the results list from the interactive map (js):  This is using the Agreement ID as display field, which is in the published service, no logical sorting here either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;https://community.esri.com/docs/DOC-11453-sort3jpg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible it would also be great to be able to say asc / desc somehow, the requests are mostly to sort by date descending, for some feature classes the user will drag a box to ID an area and return hundreds of features in some cases, and ordering by date is most helpful to them.  I also have a tool that will put all ID results in an html table, so having that ordered is also helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if I put these files in the wrong location I apologize.  If I need to move/remove them please let me know.  I haven’t used GEONet much…&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 15:31:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sorting-id-results-4-x/m-p/433394#M39943</guid>
      <dc:creator>JeffSauder</dc:creator>
      <dc:date>2018-02-22T15:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting ID Results 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sorting-id-results-4-x/m-p/433395#M39944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right click on the feature class in the identify window and make sure you have sort by ascending selected&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/397173_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 15:39:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sorting-id-results-4-x/m-p/433395#M39944</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2018-02-22T15:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting ID Results 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sorting-id-results-4-x/m-p/433396#M39945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert.  I never knew that was there.  That corrects the problem in arcmap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im guessing that doesn’t publish with the service?  I republished it, It still doesn’t sort the ID results in the javascript map&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 15:54:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sorting-id-results-4-x/m-p/433396#M39945</guid>
      <dc:creator>JeffSauder</dc:creator>
      <dc:date>2018-02-22T15:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting ID Results 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sorting-id-results-4-x/m-p/433397#M39946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go into your web map and set up the Pop up in a similar method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/397174_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 15:59:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sorting-id-results-4-x/m-p/433397#M39946</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2018-02-22T15:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting ID Results 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sorting-id-results-4-x/m-p/433398#M39947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don’t use a pop up.  Just consuming the raw id results, and creating my own table / display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m guessing that if the popup is what is used to configure this, then I will have to write that functionality into my results processing since Im using my own.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I kind of figured that I’d have to do it that way, just was hoping maybe there was a sort option in the ID Parameters that I wasn’t seeing, that I could set before I sent the request to the server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 16:06:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sorting-id-results-4-x/m-p/433398#M39947</guid>
      <dc:creator>JeffSauder</dc:creator>
      <dc:date>2018-02-22T16:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting ID Results 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sorting-id-results-4-x/m-p/433399#M39948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After that I am burnt up on ideas.&amp;nbsp; Best of luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 16:09:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sorting-id-results-4-x/m-p/433399#M39948</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2018-02-22T16:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting ID Results 4.x</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sorting-id-results-4-x/m-p/433400#M39949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Robert.  I am going to be putting some public facing maps out using more of the widgets and popups than custom development like we are doing internally, so those suggestions will definitely help when I get to that.  Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 16:23:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/sorting-id-results-4-x/m-p/433400#M39949</guid>
      <dc:creator>JeffSauder</dc:creator>
      <dc:date>2018-02-22T16:23:37Z</dc:date>
    </item>
  </channel>
</rss>

