Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 python/Django 中创建自定义 order_by 或 sort 函数的实用方法是什么,我不确定你是否可以覆盖 order by 函数。理想情况下,它会根据算法对传递的对象/项目进行排序?