After hunting the web, I found a combination of solutions that work well for an extension that just takes a comparison operator to get your distinct values. Here is my solution.