1
0
Fork 0

- improved sorting of URI fuzzy matching.

This commit is contained in:
cage 2022-07-06 20:18:25 +02:00
parent 6fbf4564af
commit b0eccdc0af
1 changed files with 6 additions and 0 deletions

View File

@ -213,6 +213,12 @@ list af all possible candidtae for completion."
(non-nulls-a (- length-a nulls-a))
(non-nulls-b (- length-b nulls-b)))
(cond
((and (= length-a (length template))
(= nulls-a 0))
t)
((and (= length-b (length template))
(= nulls-b 0))
nil)
((= length-a length-b)
(< nulls-a nulls-b))
((= non-nulls-a non-nulls-b)