[Feature] Admin: sort user list by email (#12350)

### What problem does this PR solve?

Sort the user list by user email address.

### Type of change

- [x] New Feature (non-breaking change which adds functionality)

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2025-12-31 11:55:18 +08:00
committed by GitHub
parent a07e947644
commit f141947085

View File

@ -164,7 +164,7 @@ class UserService(CommonService):
@classmethod
@DB.connection_context()
def get_all_users(cls):
users = cls.model.select()
users = cls.model.select().order_by(cls.model.email)
return list(users)