added 'order' clause to unionGroup