Sort json renders so that they come in a predictable order