Comparing numbers instead of symbols/strings.
B-7 (nextperm). Fast version, accepted by PCMS2!