cancel
Showing results for 
Search instead for 
Did you mean: 
DavidMalcolm
Level 3
Status: New

Appending to a collection only adds at the end.  If I want to add a field to a collection in the middle (or after/before a specific field) I have to split the collection in two at that point, append to the left collection and then merge the two back together.  Would be easier if there was a utility that could do this by passing the filed you want to place before, and if blank (or not passed) would add to the beginning.  This is helpful when converting a collection to JSON and needing the fields in a certain order to match (so text replacement can be done if needed on the JSON string as compared to an expected value)