I\'m outputting the contents of a select menu from a model using this:
$select = $this->select();
$select->order(\'name\');
return $this->fetchAll($sele
I believe this is what you are looking for:
$name = 'John';
$order = new Zend_Db_Expr($this->getAdapter()->quoteInto("name = ?", $name) ." DESC, `name`");
$select = $this->select();
$select->order($order);
return $this->fetchAll($select);
depending on your SQL DB, this is not supported. (i dont know a database which can sort directly by a string.)
what would you want to accomplish ? have fields with someValue at the first positions