freeze, libevent and sort results