aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)