Ensured that an index is used for ordering, even if NULLS FIRST is specified for an ASCENDING sort order. Issue #699.