change comparison function to not take ordering, right now, reverse indexes not supported