aboutsummaryrefslogtreecommitdiff
path: root/sx-search.el
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2015-02-12 10:13:24 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2015-02-12 10:13:24 -0200
commit67af840cb9a9eb18d5d7ddb16f75676ed47852fd (patch)
tree35659f94aa009dbea3904c4126d38adcb3159971 /sx-search.el
parent0ddc0693f364ed547291bda199728a2dc8495c5f (diff)
Define sx-question-list--descending for inverting the order
Diffstat (limited to 'sx-search.el')
-rw-r--r--sx-search.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/sx-search.el b/sx-search.el
index 235d5f7..e6746a3 100644
--- a/sx-search.el
+++ b/sx-search.el
@@ -115,6 +115,7 @@ prefix argument, the user is asked for everything."
(sx-search-get-questions
sx-question-list--site page
query tags excluded-tags
+ (cons 'order (if sx-question-list--descending 'desc 'asc))
(cons 'sort sx-question-list--order))))
(setq sx-question-list--site site)
(setq sx-question-list--order sx-search-default-order)