public virtual IList <TrieMapMatcher.PartialApproxMatch <K, V> > ToSortedList()
            {
                IList <TrieMapMatcher.PartialApproxMatch <K, V> > res = queue.ValuesList();

                res.Sort(TrieMapMatcher.PartialMatchComparator <K, V>());
                return(res);
            }
            public override IList <TrieMapMatcher.PartialApproxMatch <K, V> > ToSortedList()
            {
                IList <TrieMapMatcher.PartialApproxMatch <K, V> > all = new List <TrieMapMatcher.PartialApproxMatch <K, V> >(Size());

                foreach (BoundedCostOrderedMap <Match <K, V>, TrieMapMatcher.PartialApproxMatch <K, V> > q in multimatchQueues.Values)
                {
                    Sharpen.Collections.AddAll(all, q.ValuesList());
                }
                all.Sort(TrieMapMatcher.PartialMatchComparator <K, V>());
                return(all);
            }