我有一张有以下字段的表格:
我需要基于另一个领域的排序:
if (sortbyp=1) {
sort by "published_date"
}
else {
sort by "created_date"
}我需要把这个传递给Zend App_Solarium。比如:
$sort = array('mysql_id' => 'desc');发布于 2014-01-09 12:34:18
使用SQL:orderby.asp
没什么可说的了。
https://stackoverflow.com/questions/21020319
复制相似问题