Re-order the comparison cascading if/else clauses to put the least
likely option (a match, where cmp == 0), last.