sort the packages list