###########################################
1) Reorganize Chunks in a RecurringFormat:
###########################################
eg: mm:dd:yy to yy:mm:dd
for this something like vi was good.
On windows or mac etc probably best use Sublimt-Text, using:
RegExp (regular expressions), when you search for something in sublime, need to enable RegExp:
it is the button [ .* ] at far left of textbox that pops up for search (CTRL + F) in sublime at bottom
+
Groups in RegExp:
Groups let you define patterns in text
Can have multi RegExp groups
then can have search & replace using those RegExp group definitions.
So you define search & replace (for all instances clicked), then it replaces all with 1 click.
RegExp grouping needs a lot of training & trial & error, in vi or sublime etc.
Best start simply with one group definition (/1). Then multi groups in one search: (/1) abc (/2) defg etc (/3) etc
############################################
2) SORTING Chunks:
############################################
This is an algorithm & has to be done by some code, in a language or database.
Or at very least for simple cases in batch files, macros for excel or word etc.
############################################
Good luck.