1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-11-01 21:02:38 +00:00

Add sorting of sets/dicts that use formatter.paginate

This commit is contained in:
Dylan Dizon 2018-11-17 13:20:17 -05:00
parent b26384dbcf
commit 5f62c91c0f

View file

@ -39,7 +39,7 @@ async def paginate(
end=''): end=''):
paginator = Paginator(prefix=prefix, suffix=suffix) paginator = Paginator(prefix=prefix, suffix=suffix)
messages = [] messages = []
i = copy.deepcopy(i) i = sorted(copy.deepcopy(i))
if start: if start:
paginator.add_line(start) paginator.add_line(start)