[ordering] added sanity check