EDX-1: Added reverse Pair ordering