-
Notifications
You must be signed in to change notification settings - Fork 1
Sort str
mtbeek32 edited this page Jan 2, 2023
·
4 revisions
String functions sort_str(ing)
- sort_str(string_dataitem)
sort_str(string_dataitem) sorts data item string_dataitem in ascending order (ASCII sort sequence).
The sort_str function is case sensitive.
Use the reverse function on a sorted string to sort in descending order (see example).
- data items string_dataitem with string value type
attribute
sortA_asc (ADomain) :=
sort_str
(A);
attribute
sortA_desc (ADomain) := reverse(sortA_asc);
A | sortA_asc | srtA_desc | |
'Test' | ' test met spatie' | 'twee woorden' | |
'88hallo99' | '+)' | 'Test' | |
'+)' | '88hallo99' | '88hallo99' | |
'twee woorden' | 'Test' | '+)' | |
' test met spatie' | 'twee woorden' | ' test met spatie' |
ADomain, nr of rows = 5
GeoDMS ©Object Vision BV. Source code distributed under GNU GPL-3. Documentation distributed under CC BY-SA 4.0.