Table sorting and searching predicates