finally sorting-batching