Execution of a script in opposite order

Execution of a script in opposite order

Hi,
I'm starting to write some Deluge script and I'm really surprise about a behaviour of the system.
I've just insert to simple line in a script    while one field is being updated:
Alert "step 1"
Alert "step 2"
and with my great surprise I've checked that the system show me the alerts in opposite order so before step 2 and then step 1

I cannot really believe that.
Could you please tell my what's matter?

Thanks.
Luca.