First-fit decreasing begins by sorting item sizes from largest to smallest.
Largest first
First-fit decreasing sorts items from largest size to smallest size.
decreasing size order
Ties stay stable
The two half-size items stay A then B, and the three one-third items stay C then D then E.
A,B,C,D,E
Sorted order
The sorted order is A, B, C, D, E.
order=A,B,C,D,E