do not sort if sort_k_batches == 1
Merge branch 'separate' of https://github.com/rizar/groundhog-private into separate