Given the following objects:
IUntypedSqlExpression q
string sortField1 = "FirstField"
string sortField2 = "SecondField"
The following returns ORDER BY [SecondField]
:
q.OrderBy(sortField1).ThenBy(sortField2)
While this returns ORDER BY [FirstField] DESC, [SecondField] DESC
q.OrderByDescending(sortField1).ThenByDescending(sortField2)
Can you verify this behaviour? I got this with ServiceStack 5.5.0.