fix date sort in telemetry.js