aircrack-ptw-lib: optimize sort helpers

By using simple subtraction instead of conditional statements in the sort helpers we gain a 24% speedup in ptw-lib.