You could probably do this in a saved search - but the formula for doing it would be abstract. Something along the lines of NVL({parent.id},{id}) as your grouping - of course, the field reference is probably wrong there, and you'd have to replicate other logic into the search.