#99426
admin
Keymaster

Hi Michael20,
yes it is. Just set the sorted attribute on the tag of the element and the items will be sorted by default. Here’s an example:


<smart-list-box sorted>
  <smart-list-item>Z</smart-list-item>
  <smart-list-item>A</smart-list-item>
  <smart-list-item>G</smart-list-item>
</smart-list-box>

Best Regards,
Christopher
Smart HTML Elements Team
https://www.htmlelements.com