
Patrick B. answered 06/01/19
Math and computer tutor/teacher
At the batch level not off the top of my head, but definitely in C or java...
step 1:
declare data structure
filename
header
and an array of these data structures
step 2:
for each file:
read the file, grab the header
store in array
step 3:
sort the array by header
step 4:
merge sort