Optimizers: start implementing the sorting via indexes.