enumObj->Sort();
EntryEnumerator::Create(nsTHashtable<CategoryLeaf>& aTable){  EntryEnumerator* enumObj = new EntryEnumerator();  if (!enumObj)    return nsnull;  enumObj->mArray = new char const* [aTable.Count()];  if (!enumObj->mArray) {    delete enumObj;    return nsnull;  }  aTable.EnumerateEntries(enumfunc_createenumerator, enumObj);  return enumObj;}