If you want to implement a dynamic sort based on an input parameter of type Text, you need to sanitize this string to prevent SQL-injections. This library has two functions to get you covered:
The former versions (< 1.2.0) of this forge component were using another approach derived from the OutSystems documentaion article "How to enable dynamic sorting in a table fed by a SQL query". This older function EncodingSortForSQL is still contained in the library for backward compatibility, but is marked as deprecated and internally uses the new functions now:
The new version offers the following improvements: