summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2012-02-27 23:53:18 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2012-02-27 23:53:18 +0100
commit168dd2fa9a7a37c0e0dc299a15577c3ec7c0ba33 (patch)
tree2fdb1b2c9b1fd0fcb3645445bfa1a61ae37acbb1 /src
parentb8b25a522ff1a05c9b8d64b2e875eb8a04967b40 (diff)
Book Marx: Improve tag autocompletion.
Diffstat (limited to 'src')
-rw-r--r--src/mulk/benki/book_marx.clj2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mulk/benki/book_marx.clj b/src/mulk/benki/book_marx.clj
index 9eabfc1..0f6553b 100644
--- a/src/mulk/benki/book_marx.clj
+++ b/src/mulk/benki/book_marx.clj
@@ -128,7 +128,7 @@
(defpage "/marx/tags" {}
(with-auth
(with-dbt
- (sql/with-query-results tags ["SELECT tag FROM bookmark_tags"]
+ (sql/with-query-results tags ["SELECT DISTINCT tag FROM bookmark_tags ORDER BY tag ASC"]
(response/json (doall (map :tag tags)))))))
(defmacro ignore-errors [& body]