Fixed getting stats from executors, sort output in csv