fix group sort