From 9ce6b1c9c805ae68ed57d711abf344d2f1ce3ce5 Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Sat, 22 Jul 2017 13:11:08 +0100 Subject: sort symbol properties --- helpful.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/helpful.el b/helpful.el index 932a42e..8dc6c93 100644 --- a/helpful.el +++ b/helpful.el @@ -69,6 +69,10 @@ This allows us to distinguish strings from symbols." "Return a string describing all the properties of SYMBOL." (let* ((syms-and-vals (-partition 2 (symbol-plist symbol))) + (syms-and-vals + (-sort (-lambda ((sym1 _) (sym2 _)) + (string-lessp (symbol-name sym1) (symbol-name sym2))) + syms-and-vals)) (lines (-map (-lambda ((sym val)) -- cgit v1.0