Hey guys,
I'm running version 3.1 build 175.
I'm using a lookup wizard, and I would like to order my results by two columns. However the order by drop-down seems to only allow me to choose one field.
I tried filling in the WHERE textbox to say "1 = 1 ORDER BY first_name ASC, last_name ASC" but this causes errors because php runner puts ()'s around everything filled into the WHERE box, making my SQL look like WHERE(1 = 1 ORDER BY first_name ASC, last_name ASC). Which is illegal.
I also tried editing the text box to be "1 = 1) ORDER BY first_name ASC, last_name ASC -- " to make the SQL look like WHERE(1 = 1) ORDER BY first_name ASC, last_name ASC -- ). Commenting out the last ) did trick php into working on the view page, however, it broke other pages, such as edit, where additional SQL information came after the ORDER BY clause. All of which got commented out from my --
Any ideas on how to order by two columns in a lookup wizard? Thanks