add Query#isSorted() method