branch: externals/modus-themes
commit eac296eb1d7fe2e255ec7c1368c71093e6e957ff
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>

    Use modus-themes-sort in the method of modus-themes-include-derivatives-mode
---
 modus-themes.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modus-themes.el b/modus-themes.el
index ea6df0b2aa..ddb1154d79 100644
--- a/modus-themes.el
+++ b/modus-themes.el
@@ -7415,7 +7415,10 @@ accordingly."
   :init-value nil)
 
 (cl-defmethod modus-themes-get-themes (&context 
(modus-themes-include-derivatives-mode (eql t)))
-  (modus-themes-get-all-known-themes nil))
+  (if-let* ((themes (modus-themes-get-all-known-themes nil))
+            (sorted-themes (modus-themes-sort themes 'light)))
+      sorted-themes
+    modus-themes-items))
 
 ;;;; Add themes from package to path
 

Reply via email to