in reply to Perl Formatting Text

Here is the obligatory one-liner:
perl -an -E '$c=shift@F; say qq|$c $_\n| for sort {$a<=>$b} @F' your-f +ile.txt

        This is not an optical illusion, it just looks like one.