Steve,
I tried adding the grafted field expression in the delegated class. This is a different table but it has the same problem. ORDER BY section seems to be ignored.
<?php
class tables_tbl_RMInv {
function __sql__(){
return "SELECT o.ID, o.Part, o.Price, o.Reorder, o.Leadtimes_weeks, o.Vendors, SUM(i.Qnty) AS Qnty, j.DocumentTitle AS Description FROM tbl_RMInv o LEFT JOIN tbl_RMQnty i ON o.ID=i.RM_ID LEFT JOIN tbl_PartNumbers j ON o.Part=j.DocumentControlNumber GROUP BY o.ID, o.Part ORDER BY o.Part";
}
}
?>