Getting incorrect output for Simple For each loop using Array[T]

I was running a simple for each loop using Array[T], created a variable and stored the values {1,2,3,4,5,6] in it, created a for each and for the array and storing the output to Write Line. When i ran i got some weird output (1,2,3,4,6,5). (5 and 6) got misplaced. But when I am running them in debug mode, the output is getting printed as expected.

Attaching the screenshot.

Is this a bug?
Version of Studio Pro is 2021.4.4

Screenshot for output from debug mode.

Hi,

It’s matter of Output panel of Studio. Can you check log file?

Regards,

@Sankalp_Srivastav

Are you getting same kind of output every time ?

Yes Sir

@Sankalp_Srivastav

Use Delay activity after Write Line activity and mention delay as 00:00:01 and then check it once.