Nick Trainor <[EMAIL PROTECTED]> writes: > What am I missing here?
The ORDER BY query has to evaluate the function at *every* row of the table before it can sort. The other query was only evaluating the function at twenty rows. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly