(feat): order backlinks by filename (#300)

Co-authored-by: Jethro Kuan <jethrokuan95@gmail.com>
This commit is contained in:
wannli
2020-03-15 03:26:24 -04:00
committed by GitHub
parent 98fc273a0f
commit f238e3fe02

View File

@@ -1085,9 +1085,10 @@ If item at point is not Org-roam specific, default to Org behaviour."
(defun org-roam--get-backlinks (file)
"Return the backlinks for FILE."
(org-roam-sql [:select [file-from, file-to, properties] :from file-links
:where (= file-to $s1)]
file))
(org-roam-sql [:select [file-from, file-to, properties] :from file-links
:where (= file-to $s1)
:order-by (asc file-from)]
file))
;;;; Updating the org-roam buffer
(defun org-roam-update (file-path)