XWIKI-9731: Translation bundles are not really ordered by priority
* better compare

(cherry picked from commit ce83a2dae6f5cf8c33e92e1e20ea76f8c814ef2c)