Write coverage statistics to json file

```js
return a.source.localCompare(b.source);
```