sort bundles by id