Skip to content

Commit

Permalink
sort credentials by username instead of timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
byewokko committed Jun 24, 2024
1 parent 133c0cd commit 88551f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions seacatauth/credentials/providers/mongodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ async def iterate(self, offset: int = 0, limit: int = -1, filtr: str = None):
if limit >= 0:
cursor.limit(limit)

cursor.sort("username", 1)

async for d in cursor:
yield self._normalize_credentials(d)

Expand Down

0 comments on commit 88551f4

Please sign in to comment.