Skip to content

Commit

Permalink
fix: sortby
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Oct 19, 2020
1 parent 1b50e1a commit 7bddec9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/controllers/admin/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/admin/manage/users.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
<th data-sort="reputation" class="text-right pointer">[[admin/manage/users:users.reputation]] {{{if sort_reputation}}}<i class="fa fa-sort-{{{if reverse}}}down{{{else}}}up{{{end}}}">{{{end}}}</th>
<th data-sort="flags" class="text-right pointer">[[admin/manage/users:users.flags]] {{{if sort_flags}}}<i class="fa fa-sort-{{{if reverse}}}down{{{else}}}up{{{end}}}">{{{end}}}</th>
<th data-sort="joindate" class="pointer">[[admin/manage/users:users.joined]] {{{if sort_joindate}}}<i class="fa fa-sort-{{{if reverse}}}down{{{else}}}up{{{end}}}">{{{end}}}</th>
<th data-sort="lastonline" class="pointer">[[admin/manage/users:users.last-online]] {{{if sort_online}}}<i class="fa fa-sort-{{{if reverse}}}down{{{else}}}up{{{end}}}">{{{end}}}</th>
<th data-sort="lastonline" class="pointer">[[admin/manage/users:users.last-online]] {{{if sort_lastonline}}}<i class="fa fa-sort-{{{if reverse}}}down{{{else}}}up{{{end}}}">{{{end}}}</th>
</tr>
</thead>
<tbody>
Expand Down

0 comments on commit 7bddec9

Please sign in to comment.