Unverified Commit 14199503 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub

Reverse order on the top instance sort

parent da04cde0
......@@ -26,7 +26,7 @@ class FriendsController < ApplicationController
.compact
.map { |uid| uid.split('@').last }
.inject(Hash.new(0)) { |h, k| h[k] += 1; h }
.sort_by { |k, v| v }
.sort_by { |k, v| -v }
.map { |k, _| fetch_instance_info(k) }
.compact
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment