Hi Manish,
You can use the `xxf:sort()` function for this (see link below for more on
that function). For instance to sort the list of countries in reverse
alphabetical order, you would do:
xxf:sort(/countries/country, name, 'text', 'descending')
And replace `descending` by `ascending` to get the normal alphabetical
order. (I'm just doing the reverse here, as the service I've used already
returns a list sorted in alphabetical order, so you wouldn't see the
difference.) In the Form Builder Control Settings dialog you'd have
something like: dynamic-dropdown-xxf-sort.png
<
http://discuss.orbeon.com/file/t119778/dynamic-dropdown-xxf-sort.png> .
You'll let me know if this works for you!
https://doc.orbeon.com/xforms/xpath/extension-functions/extension-xml#xxf-sort
‑Alex
-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from:
http://discuss.orbeon.com/