JMA - updated the output ordering for media blocks