Not quite sure whether you are speaking of
but there’s an example here of sorting the peers of the currently selected item: