[FIX] Use record.sorted() and key-like attribute getter to avoid IndexError

Merged Gabriel Davini requested to merge 8.0-fix_compute_supplier_recommended into 8.0-stage

Merge request reports