What I would really like to do is have it sort on the values coming from a lookup table, rather than on the join value. Suppose I have two tables COUNTRY (country_id, country_name) and CITY (city_id, country_id, city_name) - the join being country_id.
I have the list screen built and appearing for the CITY table correctly and using a lookup table wizard I can get it to show the country next to the city. But I want the output to be sorted on COUNTRY (country_name), now currently it is sorted on the join field country_id which is fine if you added all the countries alphabetically, but if you forgot a country (say 'Australia') and then added that in later it would have a country_id higher than all others and would appear at the end.
I thought I could overide this behaviour by simply going in and changing the SQL so that I could do a manual join and sort (ORDER BY). I tested the queries directly in the database, but when it comes to using PHPRunner, it adds additonal where clause syntax after my order by, hence it fails with a syntax error.
Any suggestions?
Thanks
Carlos