Hello all,
I like to sort my music by the date when I purchased it when generally
corresponds to the last modified time. For this reason, I have been
hestitant to switch to emms for my music manager. I learned a little
lisp and came up with the following function which I have added to my
emms-playlist-sort.el
(defun emms-playlist-sort-by-mtime ()
"Sort emms playlist by info-mtime, increasingly."
(interactive)
(emms-playlist-sort
(lambda (a b)
(time-less-p (append (emms-track-get a 'info-mtime) '(0) )
(append (emms-track-get b 'info-mtime) '(0) ))
)))
_______________________________________________
Emms-help mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/emms-help