protected function orderAssignments(array $assignments) {
        usort($assignments, function ($a, $b) {
            return $a->getDisplayOrder() - $b->getDisplayOrder();
        });
        
        return $assignments;
    }
protected function orderAssignments(array $assignments) {
        usort($assignments, function ($a, $b) {
            return $a->getDisplayOrder() - $b->getDisplayOrder();
        });
        
        return $assignments;
    }
protected function orderAssignments ( array $ assignments ) { usort ( $ assignments , function ( $ a , $ b ) { return $ a -> getDisplayOrder ( ) - $ b -> getDisplayOrder ( ) ; } ) ; return $ assignments ; }
Order Assignments of a given user.

By default, this method relies on the taoDelivery:DisplayOrder property
to order the assignments (Ascending order). However, implementers extending
the GroupAssignment class are encouraged to override this method if they need
another behaviour.

@param array $assignments An array of assignments.
@return array The $assignments array ordered.
Order Assignments of a given user .