fixup! erp5_core: Make two queries in Base_getRelatedDocumentList
My suggestion of using sorted in https://lab.nexedi.com/nexedi/erp5/merge_requests/1373#note_129103 was wrong, ERP5 document do not sort in deterministic order. Use a key function to make sure we get results in same order