properly dedupe results when using --{r,}sort

Should *actually* fix GHI#85.