added sub-group list sorting