compare_by_type_and_name
waitObjects.SortItems(&compare_by_type_and_name);
if (compare_by_type_and_name(firstObject, waitObjects.ItemAt(k))