I'm not 100% sure, but to my recollection NetSuite...
# suitescript
j
I'm not 100% sure, but to my recollection NetSuite groups context values that you wrote based on the context key, and in my experience executes a reduce stage for each key in lexicographic order