Sorting bugfix

Incoherent sort order would cause false positives in both not present and not tracked.