From b4bc1faba6489d2863b6c105eb1f394124ea3963 Mon Sep 17 00:00:00 2001 From: William Xu Date: Sat, 17 Mar 2007 09:23:00 +0000 Subject: emms-playlist-sort.el: Make `emms-string<' silent when some argument is nil. darcs-hash:20070317092305-cfa61-5939905142385889ddfd77f12fc23ac3c6b49d07.gz --- emms-playlist-sort.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3