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