civicrm/civicrm-core — pull request #4566 by seamuslee001 (2014-11-16 08:54:41+00:00)
Title: CRM-15604 Fix up Group Sort Order in CiviMail when using multisite exten...

...sion

This is a revised version of my previous PR for CRM-15604, Have essentially backported some work by i think @colemanw . I think this now deals with the nested groups problem i would have otherwise run into. I took the opportunity to patch a number of areas where the sort order was incredibly strange and I tested what Coelman had done with the 4.5 code and that worked so decided not to reinvent the wheel. I think I have covered everywhere this was cropping up. Importantly note this only is an issue i think in 4.4 (maybe earlier as well). Thanks @colemanw for the tip about nested groups