Skip to content

InvertOrder Method ​

Definition ​

  • Namespace: JASE.Database
  • Assembly: JASE.Database.dll

IReadOnlyList<OrderBy> InvertOrder(IReadOnlyList<OrderBy> orderBy) ​

csharp
IReadOnlyList<OrderBy> InvertOrder(IReadOnlyList<OrderBy> orderBy)

Returns a new ORDER BY list with each direction flipped (ASC↔DESC) and NULL placement flipped (LAST↔FIRST).

Parameters ​

NameDescription
orderByDisplay or query ORDER BY.

Remarks ​

The true reverse of ASC NULLS LAST is DESC NULLS FIRST (nulls move with the direction change).