Csv writing order

Hello there,
I was trying to write in csv and im facing a problem

{
  "Command": "storeText",
  "Target": "xpath=//*[@id=\"tabinfosperso\"]/section[1]/ul[1]/li[4]",
  "Value": "!csvline"
},
{
  "Command": "if_v2",
  "Target": "!${!LastCommandOK}",
  "Value": ""
},
{
  "Command": "store",
  "Target": "Non renseigné",
  "Value": "!csvline"
},
{
  "Command": "end",
  "Target": "",
  "Value": ""
},
{
  "Command": "storeText",
  "Target": "xpath=//*[@id=\"tabinfosperso\"]/section[1]/ul[1]/li[3]",
  "Value": "!csvline"
},
{
  "Command": "csvSave",
  "Target": "list",
  "Value": "!csvline"
}

Problem is when it’s not going in the if I got this in my csv :
test1234, test@gmail.com
And otherwise I got this :
test@gmail.com, Non renseigné
What the hell is going on and how can I fix it please ? It feels like a bug because the order should not be altered but it is. Find it quite strange.