In a food chain, we have a linear series of links that start from producer organisms and end at an apex predator species or decomposer and detritivores.
In this case, the order would be as follows, with the first organism on the bottom:
Decomposer
Carnivore
Herbivore
Producer