Add optional sorting of TRT RDOs at BS conversion stage. This is needed to be able to write them out.
Currently disabled by default as it may cause unneeded CPU increase. We may want to test later and enable it by default.
/cc @wlampl @tstreble @hansenph @cgrefe @beddall