Add index; sort by index; add base predicate