1
There are plenty of tools that will sort a text file on the assumption that the unit of interest is the line, but are there any that work on blocks?
Example:
name = Mercury
order = 1
mass = 0.06
name = Venus
order = 2
mass = 0.82
name = Earth
order = 3
mass = 1
Is there a tool that would sort the list of planets optionally by name, mass or order from the sun, taking as input and producing as output a text file with each record being a block like the above?