Add similarity heuristic for ordering tcomp results