Implement the remaining Query functions.

When using an Ord constraint and 'compare' instead of 'byteCompare' we gain about 40ns.