Batches sorting and TagManager