Query sort keying on index values and not index hashes which was causing unexpected ording results