protected function orderAssignments(array $assignments) {
        usort($assignments, function ($a, $b) {
            return $a->getDisplayOrder() - $b->getDisplayOrder();
        });
        
        return $assignments;
    }