EZP-22308: store in db sortkey value (as in legacy) and return it while searching for relation