From 5f62c91c0ff9a83164153efc0c0c73ff79a612d4 Mon Sep 17 00:00:00 2001 From: Dylan Dizon Date: Sat, 17 Nov 2018 13:20:17 -0500 Subject: [PATCH] Add sorting of sets/dicts that use formatter.paginate --- src/utils/formatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/formatter.py b/src/utils/formatter.py index d0dbc68..9c274aa 100644 --- a/src/utils/formatter.py +++ b/src/utils/formatter.py @@ -39,7 +39,7 @@ async def paginate( end=''): paginator = Paginator(prefix=prefix, suffix=suffix) messages = [] - i = copy.deepcopy(i) + i = sorted(copy.deepcopy(i)) if start: paginator.add_line(start)