public static void Sort(MapleClient c, byte fromlvl, byte tolvl, byte fromsize, byte tosize, byte fromavg, byte toavg) {
            lock.readLock().lock();
            try {
                for (MapleGuild g : guilds.values()) {
                    if (g.getLevel() >= fromlvl && g.getLevel() <= tolvl || g.getMembers().size() >= fromsize && g.getMembers().size() <= tosize || g.getAveregeLevel() >= fromavg && g.getAveregeLevel() <= toavg) {
                        sorted.put(g.getId(), g);
                    }
                }
            } finally {
                lock.readLock().unlock();
            }
        }