mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 17:06:31 -06:00
add to_date so its more explicit
This commit is contained in:
parent
1264f628c8
commit
8250586306
@ -3,7 +3,7 @@ class Admin::UsersController < Admin::AdminController
|
||||
def index
|
||||
# Sort order
|
||||
if params[:query] == "active"
|
||||
@users = User.order("COALESCE(last_seen_at, '1970-01-01') DESC, username")
|
||||
@users = User.order("COALESCE(last_seen_at, to_date('1970-01-01', 'YYYY-MM-DD')) DESC, username")
|
||||
else
|
||||
@users = User.order("created_at DESC, username")
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user