Sort keys for insert statements to mitigate arrays of objects with differing key orders (even though JS pretends key order doesn't matter)