Sorted generated json files by key

In before, the order of json's key is random which make us very
hard to diff, so we need to sort the key.