move pretty print metadata key sorter into standalone class, with added PrettyMetadataKeyComparator...argh