Fix is_ordered flag

Fixes is_ordered flag behavior (now reversed); adds tests; bumps version.