diff --git a/src/controllers/admin/users.js b/src/controllers/admin/users.js index 26edf7a00109..3acd0cd80866 100644 --- a/src/controllers/admin/users.js +++ b/src/controllers/admin/users.js @@ -64,7 +64,7 @@ async function getUsers(req, res) { } if (!set.length) { set.push('users:online'); - sortBy = 'online'; + sortBy = 'lastonline'; } return set.length > 1 ? set : set[0]; } diff --git a/src/views/admin/manage/users.tpl b/src/views/admin/manage/users.tpl index 0578299721fa..bf1511647314 100644 --- a/src/views/admin/manage/users.tpl +++ b/src/views/admin/manage/users.tpl @@ -98,7 +98,7 @@