Fix is_ordered flag

Fixes is_ordered flag behavior (now reversed); adds tests; bumps version.
newline at the end of the line please =)