Fix group sorting criteria. IsCloseout should be the first criteria