Test out distinct + usage of main node table for Location sort criterions