Bugfix: do not use hierarchy as a comparator