mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 13:49:13 +00:00
[enhancement] sort links on basis of link_count (idx)
This commit is contained in:
@@ -31,7 +31,7 @@ def get_product_list(search=None, start=0, limit=12):
|
||||
search = "%" + cstr(search) + "%"
|
||||
|
||||
# order by
|
||||
query += """ order by weightage desc, modified desc limit %s, %s""" % (start, limit)
|
||||
query += """ order by weightage desc, idx desc, modified desc limit %s, %s""" % (start, limit)
|
||||
|
||||
data = frappe.db.sql(query, {
|
||||
"search": search,
|
||||
|
||||
Reference in New Issue
Block a user