Avoid backwards ordering on first export of json files

Bug: 42613
Change-Id: Ifb69ed845ab0b00ea70d6f4d4ad37ec4aa7d075a
Merge "Avoid backwards ordering on first export of json files"