<?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: Alphabetizing responses to a repeat question in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/alphabetizing-responses-to-a-repeat-question/m-p/1707167#M66366</link>
    <description>&lt;P&gt;I do not know of any way to order them, join is the order they were created is all you can do.&amp;nbsp; Would have to be a javascript addin prob.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jun 2026 15:42:35 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2026-06-09T15:42:35Z</dc:date>
    <item>
      <title>Alphabetizing responses to a repeat question</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/alphabetizing-responses-to-a-repeat-question/m-p/1316064#M51045</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a survey where users identify all the plant species in an area. Users select a species in the repeat and some additional information, then repeat for each species they see. There is a need for the surveyor to see the list of species they have observed, which can get quite long. I have created a HTML table that lists all the species observed and their associated data as a note in the repeat below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IanLane_0-1691421781810.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/77457i85186356C688AC13/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IanLane_0-1691421781810.png" alt="IanLane_0-1691421781810.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IanLane_1-1691421923970.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/77459i335CB967B63D1BCA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IanLane_1-1691421923970.png" alt="IanLane_1-1691421923970.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works well, but can make going back and finding if you entered a species already difficult if you have 100+ entries. Is there a way to alphabetize such a list by species? Open to different list building methodologies as well.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 15:27:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/alphabetizing-responses-to-a-repeat-question/m-p/1316064#M51045</guid>
      <dc:creator>IanLane</dc:creator>
      <dc:date>2023-08-07T15:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Alphabetizing responses to a repeat question</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/alphabetizing-responses-to-a-repeat-question/m-p/1316125#M51049</link>
      <description>&lt;P&gt;No there is no built it way.&amp;nbsp; You would have to write a custom javascript function.&amp;nbsp; join just uses them as they were created.&lt;/P&gt;&lt;P&gt;In my form I use a seperate summary page at the end of the form and the grid appearance.&amp;nbsp; That way it is on its own page and has more room horizontally and vertically.&amp;nbsp; I have my species list setup up like&lt;/P&gt;&lt;P&gt;CODE&amp;nbsp; &amp;nbsp;Scientific Name&amp;nbsp; Common Name&lt;/P&gt;&lt;P&gt;that way the user can search on anything they may know.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DougBrowning_0-1691429894616.png" style="width: 771px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/77468i19C04104A12F4837/image-dimensions/771x187?v=v2" width="771" height="187" role="button" title="DougBrowning_0-1691429894616.png" alt="DougBrowning_0-1691429894616.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 17:40:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/alphabetizing-responses-to-a-repeat-question/m-p/1316125#M51049</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2023-08-07T17:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Alphabetizing responses to a repeat question</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/alphabetizing-responses-to-a-repeat-question/m-p/1324207#M51466</link>
      <description>&lt;P&gt;We have a similar issue that 'messes' up dashboards when the answers are selected in different orders.&lt;/P&gt;&lt;P&gt;As mentioned, no inbuilt sort() function and can make your own.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;/*
 * JavaScript functions for Survey123
 */

function sort_many(selected) {

    // Add your code here

    var selected_array = selected.toString().split(",")
    var selected_sorted = selected_array.sort();
    return selected_sorted.toString()
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then in the survey can use a pulldata("@javascript", ...&lt;/P&gt;&lt;P&gt;PS Javascript will only run if the a user is logged in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 04:42:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/alphabetizing-responses-to-a-repeat-question/m-p/1324207#M51466</guid>
      <dc:creator>EdKnowles</dc:creator>
      <dc:date>2023-08-31T04:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Alphabetizing responses to a repeat question</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/alphabetizing-responses-to-a-repeat-question/m-p/1707124#M66365</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/16421"&gt;@DougBrowning&lt;/a&gt;, can you explain how this works? I see that you posted an explanation &lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/display-repeats-together-as-a-table/m-p/1373600/highlight/true#M54220" target="_self"&gt;here&lt;/A&gt;, but I'm not trying to summarize from the repeat, just want to review records from the repeat as a table(/grid), and it would be great to have them alphabetized rather than just in an HTML table. I'm doing something similar to the OP (building a species list and would like to review it as an alphabetized table). I see that you mentioned using join() for display rather than summarizing, but I haven't gotten it to work and would love a little additional guidance. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2026 14:02:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/alphabetizing-responses-to-a-repeat-question/m-p/1707124#M66365</guid>
      <dc:creator>EvanR</dc:creator>
      <dc:date>2026-06-09T14:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Alphabetizing responses to a repeat question</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/alphabetizing-responses-to-a-repeat-question/m-p/1707167#M66366</link>
      <description>&lt;P&gt;I do not know of any way to order them, join is the order they were created is all you can do.&amp;nbsp; Would have to be a javascript addin prob.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2026 15:42:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/alphabetizing-responses-to-a-repeat-question/m-p/1707167#M66366</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2026-06-09T15:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Alphabetizing responses to a repeat question</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/alphabetizing-responses-to-a-repeat-question/m-p/1707219#M66368</link>
      <description>&lt;P&gt;Ah, I see, thanks. I noticed that the first few species codes in your example screenshot were alphabetical, but I see now that they aren't all alphabetical, and the first few were only because of the order in which they were entered.&lt;BR /&gt;&lt;BR /&gt;The JavaScript function suggested below didn't work for me, but I eventually came up with one that does (with help from Microsoft Copilot). Happy to share if anyone wants it, but it's tailored specifically to work with the way I have built my table, so I won't post it here.&lt;BR /&gt;&lt;BR /&gt;Here is example output. The # field is the repeat index (order in which species were entered) to make it easier to find a species in the repeat if you need to make a change.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EvanR_0-1781103039850.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/153715i384E58B2E032FF7C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EvanR_0-1781103039850.png" alt="EvanR_0-1781103039850.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2026 14:54:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/alphabetizing-responses-to-a-repeat-question/m-p/1707219#M66368</guid>
      <dc:creator>EvanR</dc:creator>
      <dc:date>2026-06-10T14:54:47Z</dc:date>
    </item>
  </channel>
</rss>

