Split key column from sort column

E.g. a view has documents of different types.
We want to sort on `(doctype, date)` but key on `ref`.
Merge pull request #482 from plomino/jean-keycolumn

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