Fix default sort

This commit is contained in:
Omar Roth 2019-09-04 22:09:06 -04:00
parent 047d53bfb1
commit 25d8a9d76d
No known key found for this signature in database
GPG Key ID: B8254FB7EC3D37F2

View File

@ -90,7 +90,7 @@ end
get "/" do |env|
sort_by = env.params.query["sort_by"]?
sort_by ||= "users-reverse"
sort_by ||= "users"
sort_proc = ->(instance : Tuple(String, Instance)) { instance[0] }
instances = INSTANCES.dup.to_a