Sort post properties when rendering JSON