Sorting, case insensitive
Options
![pete letkeman](https://us.v-cdn.net/6037124/user_avatars/5524134.jpg)
pete letkeman
Member ✭
How can I make sort a result from a query used in an API by case insensitive?
Here is some sample data in a sortBy field:
Apple
ape
Abe
apricot
Bernie
banana
Button
bill
-------------------
After sorting using Xano the results are:
Abe
Apple
Bernie
Button
ape
apricot
banana
bill
--------------------------
However I'd like to have the following:
Abe
ape
Apple
apricot
banana
Bernie
bill
Button
-----------------------
How can I accomplish this?
Answers
-
You can use the array filter sort and use itext to sort text case-insensitive:
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback