Implement Position comparison.