Use Jena 2.12.1 with built-in JSON-LD support
Source -> Format
Source -> Format
Sort Members
Sort -> Members (including fields)