Better sorting of appendix labels

This allows for the proper sorting of labels like "999-A-12(a)(3)" and "999-A-p3", both of which are present in our appendices...