问题:TP从服务器数据中取出的collection数据,当进一步在网页中进行分页显示时,需要调用order函数,实现类似如下图的排序. 当点击页面中的相关内容时,实现对服务器数据进行重排,就要调用TP编写的order函数. 但是,上述属性中包括int属性,包括中文字符串属性,我们希望按单位名称和单位简称按汉字拼音进行排序,如何修改. 解决方法: 将TP的order函数源码从(order函数位于think-helper\src\Collection.php文件中) public function…