Split key column from sort column; respect `DoNotReindex` when adding column

E.g. a view has documents of different types.
We want to sort on `(doctype, date)` but key on `ref`.

Also: respect `DoNotReindex` when adding a column.