contentsOfStartingPath = startingPathAsFile.list();
tempArray = new NSArray(contentsOfStartingPath);
try {
tempArray = tempArray.sortedArrayUsingComparator(NSComparator.AscendingStringComparator);
contentsOfStartingPath = tempArray.objects();
} catch (NSComparator.ComparisonException e) {
// do nothing
}
int anArrayCount = contentsOfStartingPath.length;