Why am I not sorting batches?

See #138.