public List<Ban> searchBans(String search, boolean reverse) {
        List<Ban> result = new ArrayList<Ban>();

        if (search == null || search.isEmpty()) {
            result.addAll(bans.values());
        } else {

            // compile regex to search...
            Pattern searchPattern = Pattern.compile(search);
            for (String n : bans.keySet()) {
                if (searchPattern.matcher(n).matches()) {
                    result.add(bans.get(n));
                }
            }
        }

        Collections.sort(result, new BanComparator(reverse));
        return result;
    }