Welcome Guest, Not a member yet? Register   Sign In
Order BY not working
#4

[eluser]Larry Wakeman[/eluser]
I am having another problem with order by. The documentation states:

Quote:Or multiple function calls can be made if you need multiple fields.

$this->db->order_by("title", "desc");
$this->db->order_by("name", "asc");

// Produces: ORDER BY title DESC, name ASC

This does not seem to be the case. I did a print_r on the query object and only the last call is there, the others are overwritten.

I am using CI Version 1.7.2 at the moment. Thought about upgrading to 1.7.3 but when I looked, there were no translations for CI and localization is high on list of requirements for this project.


Messages In This Thread
Order BY not working - by El Forum - 11-14-2010, 11:47 AM
Order BY not working - by El Forum - 11-14-2010, 11:52 AM
Order BY not working - by El Forum - 11-14-2010, 12:08 PM
Order BY not working - by El Forum - 02-19-2011, 01:44 PM
Order BY not working - by El Forum - 02-19-2011, 03:00 PM
Order BY not working - by El Forum - 02-19-2011, 06:30 PM
Order BY not working - by El Forum - 02-20-2011, 10:48 AM
Order BY not working - by El Forum - 02-20-2011, 12:36 PM
Order BY not working - by El Forum - 02-20-2011, 07:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB