aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Xu <william.xwl@gmail.com>2007-03-17 09:23:00 +0000
committerWilliam Xu <william.xwl@gmail.com>2007-03-17 09:23:00 +0000
commitb4bc1faba6489d2863b6c105eb1f394124ea3963 (patch)
treebf98ce25a6f219cae546773685de0ff439df6adb
parentdfd7b747366c5cd18d62766151f938100e08e1b2 (diff)
emms-playlist-sort.el: Make `emms-string<' silent when some argument is
nil. darcs-hash:20070317092305-cfa61-5939905142385889ddfd77f12fc23ac3c6b49d07.gz
-rw-r--r--emms-playlist-sort.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/emms-playlist-sort.el b/emms-playlist-sort.el
index 0a702b6..f41452c 100644
--- a/emms-playlist-sort.el
+++ b/emms-playlist-sort.el
@@ -180,7 +180,8 @@ ie. by album name and then by track number."
(defun emms-string< (s1 s2)
"Same as `string<' except this is case insensitive."
- (string< (downcase s1) (downcase s2)))
+ (string< (and s1 (downcase s1)) (and s2 (downcase s2))))
+
(provide 'emms-playlist-sort)