nonsubs = nonsubs.sort_by { |v| [v.display_order, v.name] }.
             each_with_object(ActiveSupport::OrderedHash.new { 0 }) { |k,h| h[k.vouchertype] += 1 }.