Unable to Sort Using the Pending Payments on Commercial Invoice List View

Unable to sort page results on Commercial Invoice page based on the pending payments.

Expected and actual behavior

When we click Amount (excl tax) or Amount (incl tax), the page results are sorted ascending or descending. But when we have other fields “Received” & “Pending” Columns added to the list, they unfortunately are not clickable and thus un sortable.

Steps to reproduce the behavior

Show fields “Received” & “Pending” on the list page of commercial invoices to show them on the page. After which you would be able to test it out.