refs #2174 fix sorting, next: adding groups