Fix EZP-22308: store in db sortkey value (as in legacy) and return it while searching for relation
Merge pull request #839 from flovntp/EZP-22308_v2

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