sort ( [ fieldA ; "ASC" ] ; [ fieldC ; "DESC" ] ; [ fieldB ; "ASC" ] )
Just for ascending and descending sorts, numbers (e.g. 0 for ascending and 1 for descending) might work better than strings for localization. On the other hand, strings do present an opportunity to sort by a value list, given the name, so long as there's a way to sort out collisions between an "ASC"ending sort order and a value list named "ASC", for example.
duplicate Sort field <by calculation>l
ooriginal New script step to sort records by field name using indirection
Retrieving data ...