Hi Rob
Has the fix been ported to earlier versions?
No, the sort-by-group fix was part of bigger changes and as such was considered as a new feature. According Moodle development policy, changes like that are not backported to current STABLE versions. You will have to upgrade to 2.2 and then to 2.3 in order to have them available (which is generally recommended anyway).