Installation
To install EncodingSortForSQL and use it in your project, you just need to follow the steps below:
Both server actions use the structure SortAttribute which should be checked automatically, otherwise check it manually.
Usage
There are two options to use the library:
As function call in an expression
If no manipulation of the sort criteria is desired, the server actions can be used directly as a function in an expression:
BuildSafe_SortClause( TextToSortAttributes(Text, Default) )
As separate elements in a flow
Alternatively, both server actions can also be used as individual elements in a flow. This allows to access the list generated with TextToSortAttributes and manipulate the sort order before using BuildSafe_SortClause to generate the sanitized text to be used in the advanced SQL. This is useful to add or remove attributes or to force a special order, for example.