fix: assign sorted result back to variable in get_recent_users

The original code called sorted() without assignment, leaving the results list unsorted. This fix assigns the sorted list back to the results variable, ensuring the returned list is correctly ordered by user nick.
This commit is contained in:
2025-05-27 20:22:32 +00:00
parent c905ffea6a
commit a0b0b19034
+1 -1
View File
@@ -316,7 +316,7 @@ class RPCView(BaseView):
results = [
record async for record in self.services.channel.get_recent_users(channel_uid)
]
sorted(results, key=lambda x: x["nick"])
results = sorted(results, key=lambda x: x["nick"])
return results
async def echo(self, obj):