How to Sort Complex Objects in Angular Material Table Columns Sometimes you need to give the sorting algorithm a little nudge.