Fix orderBy(): now resets the ordering.

`orderBy()` replaces the existing ordering array.
`andOrderBy()` adds an extra sorting key.