I Have an array list.
ArrayList<String> arrayList = new ArrayList<>();
arrayList.add("timestamp");
arrayList.add("Code");
arrayList.add("Banana");
arrayList.add("record_version");
For each String, i want to save it to the database.
for(String str : arrayList){
Rec_table table = new Rec_table();
table.set("Name", str);
table.saveIt();
}
My expectation is the data will look like this,
Name:
timestamp
Code
Banana
record_version
But the data is saved, like this, (Alphabetical Order)
Name:
Banana
Code
record_version
timestamp
Why is that happening ?