Here is the chronological order for the plot:
(Amy throws a tantrum), in order to get her parent's attention.
(Amy gets a malt), so the parents could stop her from fussing.
(Amy notices that the baby is awake), and after that amy offered her malt for the baby.