7]}, {6=>[7, 3, 1]}, {8=>[6, 1, 3, 2, 7]}, {0=>[6, 8, 1, 9, 2, 7, 3]}, {2=>[1, 6, 7, 3]}, {7=>[]}]
var.sort { |a, b| a.values.first.size <=> b.values.first.size }
# => [{7=>[]}, {3=>[7]}, {1=>[3, 7]}, {6=>[7, 3, 1]}, {2=>[1, 6, 7, 3]}, {8=>[6, 1, 3, 2, 7]}, {9=>[3, 1, 6, 2, 8, 7]}, {0=>[6, 8, 1, 9, 2, 7, 3]}]
да!
Обсуждают сегодня