[Test case needed] 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.

I can not confirm this issue. With or without IF, the order in the CSV is always the same. I tested with the below macro (since I can not run your macro).

{
  "Name": "csv",
  "CreationDate": "2020-2-13",
  "Commands": [
    {
      "Command": "open",
      "Target": "https://ui.vision/",
      "Value": ""
    },
    {
      "Command": "storeText",
      "Target": "linkText=desktop UI automation",
      "Value": "!csvLine"
    },
    {
      "Command": "if_v2",
      "Target": "1 == 1",
      "Value": "!csvLine"
    },
    {
      "Command": "storeText",
      "Target": "linkText=Enterprise-Grade Security",
      "Value": "!csvLine"
    },
    {
      "Command": "end",
      "Target": "",
      "Value": "!csvLine"
    },
    {
      "Command": "storeText",
      "Target": "partiallinkText=RPA",
      "Value": "!csvLine"
    },
    {
      "Command": "csvSave",
      "Target": "test1.csv",
      "Value": ""
    }
  ]
}