diff options
author | Sean Allred <code@seanallred.com> | 2015-01-03 02:01:52 -0500 |
---|---|---|
committer | Sean Allred <code@seanallred.com> | 2015-01-03 02:02:12 -0500 |
commit | 09d018763d8b3cd89c56e1b50fbd8af88cd9addb (patch) | |
tree | ab3cbc7f0875bd25ffa31c61284fcb901dc96ab9 /bot/sx-bot.el | |
parent | 5cc2e6f9b6618af37d45395bb7b3aa9caba60005 (diff) |
Sort tag list before writing
This should ensure that diffs are as small as possible.
Diffstat (limited to 'bot/sx-bot.el')
-rw-r--r-- | bot/sx-bot.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/sx-bot.el b/bot/sx-bot.el index c51822d..8ec8f9c 100644 --- a/bot/sx-bot.el +++ b/bot/sx-bot.el @@ -45,7 +45,9 @@ File is savedd in `sx-bot-out-dir'." (let ((file-name (expand-file-name (car data) sx-bot-out-dir))) (with-temp-file file-name (let* (print-length - (repr (prin1-to-string (cdr data)))) + (repr (prin1-to-string + (sort (cdr data) + #'string-lessp)))) (insert repr) (insert "\n") (goto-char (point-min)) |