What is the default order in which custom object records are stored? So if I have multiple records in the CO what will be the 0th record by default ? Will it be the record which has been CREATED latest? Or does it follow some other order?
Solved! Go to Solution.
"Stored" isn't the operative word here, what you actually mean is "exported to the Velocity context." (The storage order in the database is irrelevant and certainly the entire db isn't resorted all the time, that would be madness!)
Informally, the objects in the list are ordered descending by createdAt. But there's no reason to rely on that, since you can resort the list any way you want.
"Stored" isn't the operative word here, what you actually mean is "exported to the Velocity context." (The storage order in the database is irrelevant and certainly the entire db isn't resorted all the time, that would be madness!)
Informally, the objects in the list are ordered descending by createdAt. But there's no reason to rely on that, since you can resort the list any way you want.
Thank you Sanford, this is exactly what I was looking for 🙂