Return less than, greater than, equal to.

Closes #21.