Cache ORDER BY term values during sort.