[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": ""
    }
  ]
}

我这里复现了相同的问题:比如1、2、3三个通过xclick取得的值写入!csvLine,最终csvsive后,在csv中保存的顺序不是1、2、3,而是1、3、2。疑似bug。

I have reproduced the same problem here: for example, 1, 2, and 3 are written into !csvLine through the three values ​​obtained by xclick. After the final csvsive, the order of saving in csv is not 1, 2, 3, but 1, 3, 2. Suspected bug.

@wowbbs Do you have a test macro that shows the error?