How is your experience with the OutSystems Community?
24
Views
3
Comments
Solved
How to sort a Local Text List in Ascending and Descending order?
Question

Hi everyone,


I'm working with a Local Text List in OutSystems. I want to sort the list in Ascending (A-Z) and Descending (Z-A) order using a dropdown.


I tried using the ListSort action, but it seems to work only with Record/Structure Lists. Since I'm using a Local Text List, I don't see any field to select in the By property.


Is there a built-in way to sort a Local Text List, or do I need to convert it to a Structure List or use another approach?


Any guidance or example would be appreciated.


Thank you!

2026-01-28 16-57-48
Mihai Melencu
Champion
Solution

Hi @Shiva Shanker ,


You should be able to use the list as a Text List in ListSort. If the suggestion doesn't appear then try opening the expression editor, it should be the first choice in the Attributes folder. If that doesn't work either, then try writing Value directly.




2023-09-06 07-26-35
Sudip Pal

Hi @Shiva Shanker 

I am also able to sort Text List. 

But still if you are facing any specific issue, you can share an OML which will be helpful for us to solve the issue.

Thanks,

Sudip

2023-07-03 07-28-30
Pramesh Sharma

Hi Shiva Shanker, 
Regarding the you query I have created an OML containing the logic Please check it.
Thanks Cheers!

TextListSort.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.