diff --git a/scripts/reversejson.py b/scripts/reversejson.py new file mode 100644 index 0000000..fa6ccac --- /dev/null +++ b/scripts/reversejson.py @@ -0,0 +1,6 @@ +#reversejson.py +import sys, json + +for i in sorted([json.loads(line) for line in sys.stdin], key=lambda x: x['date']): + print json.dumps(i) +