[add] sort packages by dirs