Now the keys are sorted so appear sorted on the javascript side.