From 6a16b94fff101209e90ce93ee53847d84a25da5c Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Wed, 16 Dec 2020 19:56:50 +0100
Subject: [PATCH] Return cookie chars sorted.

---
 plomrogue/things.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/plomrogue/things.py b/plomrogue/things.py
index dd14db5..4cc3512 100644
--- a/plomrogue/things.py
+++ b/plomrogue/things.py
@@ -626,6 +626,9 @@ class Thing_Player(ThingAnimate):
             self.game.players_hat_chars[self.name] += c
 
     def get_cookie_chars(self):
+        chars = ' #'  # default
         if self.name in self.game.players_hat_chars:
-            return self.game.players_hat_chars[self.name]
-        return ' #'  # default
+            chars = self.game.players_hat_chars[self.name]
+        chars_split = list(chars)
+        chars_split.sort()
+        return ''.join(chars_split)
-- 
2.30.2