8-Fix for boolean tests requiring ORDER BY clause