mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-07-13 14:02:53 +02:00
core: fix least relevant results shown on top
This commit is contained in:
@@ -76,7 +76,7 @@ export default class Lookup {
|
||||
)
|
||||
.select(["results.id"])
|
||||
.groupBy("results.id")
|
||||
.orderBy(sql`SUM(results.rank)`, "asc")
|
||||
.orderBy(sql`SUM(results.rank)`, "desc")
|
||||
.$if(!!limit, (eb) => eb.limit(limit!))
|
||||
|
||||
// filter out ids that have no note against them
|
||||
|
||||
Reference in New Issue
Block a user