<?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: Alphasorting dropdown lists by secondary value in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Alphasorting-dropdown-lists-by-secondary-value/m-p/237296#M16192</link>
    <description>&lt;P&gt;Hi &lt;A class="mention" href="https://community.hubspot.com/u/adriansprake"&gt;@adriansprake&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;The order of your dropdown options will reflect the order of the property’s options in the property settings. It’s not possible to alphabetize this automatically (or dynamically, in the case of localization) in the form/property settings. One possible way to do this would be to select and sort the options using JQuery. The following stackoverflow topic might be useful in implementing something like this:&lt;BR /&gt;
&lt;ASIDE class="onebox stackexchange"&gt;
  &lt;HEADER class="source"&gt;
      &lt;A href="https://stackoverflow.com/questions/12073270/sorting-options-elements-alphabetically-using-jquery" target="_blank" rel="nofollow noopener"&gt;stackoverflow.com&lt;/A&gt;
  &lt;/HEADER&gt;
  &lt;ARTICLE class="onebox-body"&gt;
      &lt;A href="https://stackoverflow.com/users/201681/bomortensen" target="_blank" rel="nofollow noopener"&gt;
    &lt;IMG alt="bomortensen" src="https://www.gravatar.com/avatar/1ac323be9c81b021391dc4cc2612df7c?s=128&amp;amp;d=identicon&amp;amp;r=PG" class="thumbnail onebox-avatar" width="128" height="128" /&gt;
  &lt;/A&gt;
&lt;/ARTICLE&gt;&lt;/ASIDE&gt;&lt;/P&gt;&lt;H4&gt;
  &lt;A href="https://stackoverflow.com/questions/12073270/sorting-options-elements-alphabetically-using-jquery" target="_blank" rel="nofollow noopener"&gt;Sorting options elements alphabetically using jQuery&lt;/A&gt;
&lt;/H4&gt;

&lt;DIV class="tags"&gt;
  &lt;STRONG&gt;javascript, jquery, html, sorting&lt;/STRONG&gt;
&lt;/DIV&gt;

&lt;DIV class="date"&gt;
  asked by
  
  &lt;A href="https://stackoverflow.com/users/201681/bomortensen" target="_blank" rel="nofollow noopener"&gt;
    bomortensen
  &lt;/A&gt;
  on &lt;A href="https://stackoverflow.com/questions/12073270/sorting-options-elements-alphabetically-using-jquery" target="_blank" rel="nofollow noopener"&gt;12:33PM - 22 Aug 12&lt;/A&gt;
&lt;/DIV&gt;

  
  &lt;DIV class="onebox-metadata"&gt;
    
    
  &lt;/DIV&gt;
  &lt;DIV style="clear: both"&gt;&lt;/DIV&gt;

&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2017 14:21:03 GMT</pubDate>
    <dc:creator>Derek_Gervais</dc:creator>
    <dc:date>2017-09-21T14:21:03Z</dc:date>
  </channel>
</rss>

