Add bundle_compare() in internal.h