Sort vars to be selected
Owning hierarchy