positiveOnFirstGreatest

Creates a DistributeBySign configured to distribute/allocate the difference units in the allocations list as follows:

  • Positive difference: on the first item with the greatest value

  • Negative difference: on the last item with the smallest value

Return

A DistributeBySign.