Using thinkphp, you find that you cannot sort by using->order ($order).
$order = "Info.date2 desc";
It is a pity that this result order has become the order by Date2 limit ... desc is gone.
$order there can be no space on either side, $order = "Info.date2 desc"; $order = "Info.date2 desc"; (wrong!) ）
Open File: D:\WebSite\Zbphp.com\www\ThinkPHP\Extend\Model\ViewModel.class.php
Modify line 136th to $array = Explode ("", Trim ($order)), plus trim to save, as shown in the figure:
recommended to use the second method , but look forward to thinkphp official website can fix this small problem, lest users modify the kernel code themselves. by default7#zbphp.com