Sort based in a function. It is an optimization to avoid a dynamic column to sort dataset.