elementsArray = vector.toArray();
elementsArrayLength = elementsArray.length;
if (elementsArrayLength > 0) {
refCountsArray = new AWMutableRefCount[elementsArrayLength];
System.arraycopy(elementsArray, 0, refCountsArray, 0, elementsArrayLength);
Compare compare = refCountsArray[0];
Sort.objects(refCountsArray, compare, Sort.SortDescending);
}
}
}
return refCountsArray;