Add int[] version of checkorder