NodeDatabase Sorter (legacy)