json now sorted on save

this closes issue #43