Use TreeMap's ord implementation for Json

Closes #4430
auto merge of #8312 : alexcrichton/rust/use-treemap, r=erickt

Closes #4430