sort the bundles in order to add them in a predictive way