order arg is static global, reduce stack overhead.
Add arg names to prototypes
Integer overflow fix when order=-1. Thanks Matt.
inlined 'icheck' and upated notes
Merge branch 'forder-fix'