Sort the lists in Manifest.to_json.
Sort the elements of out_items directly in Manifest.to_json.

This commit does not change the generated file.
Merge pull request #1352 from Ms2ger/deterministic-manifest

Ensure the output of manifest.py is deterministic; r=darobin