<?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 for a Popup in  Web Viewer using an Arcade element in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/sorting-for-a-popup-in-web-viewer-using-an-arcade/m-p/1215178#M48028</link>
    <description>That code worked perfectly.&lt;BR /&gt;Thank you,&lt;BR /&gt;John&lt;BR /&gt;</description>
    <pubDate>Thu, 22 Sep 2022 17:19:08 GMT</pubDate>
    <dc:creator>John_Shell</dc:creator>
    <dc:date>2022-09-22T17:19:08Z</dc:date>
    <item>
      <title>Sorting for a Popup in  Web Viewer using an Arcade element</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/sorting-for-a-popup-in-web-viewer-using-an-arcade/m-p/1214895#M48015</link>
      <description>&lt;P&gt;I am trying to figure out how to sort my field called "Name" in ascending order in the arcade element expression. I wasn't able to find an HTML tag and I tried used using Order By but I couldn't get it to work. Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;Choose a template from the Templates tab to get started with creating different content types for your pop-up.&lt;BR /&gt;To learn more about using Arcade to create pop-up content visit:&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/arcade/guide/profiles/#popup-element" target="_blank"&gt;https://developers.arcgis.com/arcade/guide/profiles/#popup-element&lt;/A&gt;&lt;BR /&gt;*/&lt;/P&gt;&lt;P&gt;var areas =FeatureSetByName($map,"Neighborhood Council Districts (Tacoma)");&lt;BR /&gt;var Onefifty = Buffer($Feature, -150, 'feet')&lt;BR /&gt;var countp = Intersects(areas,Onefifty);&lt;/P&gt;&lt;P&gt;var result = "";&lt;BR /&gt;for (var item in countp){&lt;BR /&gt;var name = item["Neighborhood"];&lt;BR /&gt;var url = item["URL"]&lt;BR /&gt;result += `&amp;lt;a href="${url}" target="_blank"&amp;gt;&amp;lt;span style="color:#287fb8;"&amp;gt;&amp;lt;u&amp;gt;${name}&amp;lt;/a&amp;gt;&amp;lt;br/&amp;gt;`&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;return {&lt;BR /&gt;type : 'text',&lt;BR /&gt;text : result&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 23:36:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/sorting-for-a-popup-in-web-viewer-using-an-arcade/m-p/1214895#M48015</guid>
      <dc:creator>John_Shell</dc:creator>
      <dc:date>2022-09-21T23:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting for a Popup in  Web Viewer using an Arcade element</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/sorting-for-a-popup-in-web-viewer-using-an-arcade/m-p/1214902#M48016</link>
      <description>&lt;P&gt;What happens when you change line 3? I'm assuming when you say "sort my field called 'Name'", you mean the 'Neighborhood' field.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var areas =FeatureSetByName($map,"Neighborhood Council Districts (Tacoma)");
var Onefifty = Buffer($Feature, -150, 'feet')
var countp = OrderBy(Intersects(areas,Onefifty), 'Neighborhood ASC');

var result = "";
for (var item in countp){
  var name = item["Neighborhood"];
  var url = item["URL"]
  result += `&amp;lt;a href="${url}" target="_blank"&amp;gt;&amp;lt;span style="color:#287fb8;"&amp;gt;&amp;lt;u&amp;gt;${name}&amp;lt;/a&amp;gt;&amp;lt;br/&amp;gt;`
}


return {
  type : 'text',
  text : result
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 00:10:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/sorting-for-a-popup-in-web-viewer-using-an-arcade/m-p/1214902#M48016</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-09-22T00:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting for a Popup in  Web Viewer using an Arcade element</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/sorting-for-a-popup-in-web-viewer-using-an-arcade/m-p/1215178#M48028</link>
      <description>That code worked perfectly.&lt;BR /&gt;Thank you,&lt;BR /&gt;John&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Sep 2022 17:19:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/sorting-for-a-popup-in-web-viewer-using-an-arcade/m-p/1215178#M48028</guid>
      <dc:creator>John_Shell</dc:creator>
      <dc:date>2022-09-22T17:19:08Z</dc:date>
    </item>
  </channel>
</rss>

