fixup! erp5_core: Make two queries in Base_getRelatedDocumentList

My suggestion of using sorted in
!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
4 jobs for fix/cmp_document_test_failure
in 0 seconds, using 0 compute credits, and was queued for 0 seconds