A technique for executing a statement in a computer to manipulate data in a data
store connected to the computer. Initially, a statement having an aggregate predicate
is received. Then, when evaluating the statement, the aggregate predicate is processed
to rank data. Furthermore, evaluating includes performing an extended sort operator
with early termination.