Sort event reverse chronologically, emove event JSON parse issue workaround