The problem may be actually trickier than that, no? Could there be other factors to take into account for their classification, like their sizes (typically, we'd want to process the biggest one first, I guess)?
Sorry for a late reply. Thanks for an explanation. This is sounds reasonable to me.