The onions are sauteed first as they take longer to cook compared to the garlic. The mushrooms are then added last to be sauteed