sort data by timestamp

This commit is contained in:
slice 2018-07-13 19:53:53 -07:00
parent 37dd98026d
commit b525404d9b
No known key found for this signature in database
GPG Key ID: 1508C19D7436A26D
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ export default class Graph extends Component {
const data = unprocessedData.map(([timestamp, latency]) => ({
x: timestamp,
y: latency,
})).reverse();
})).sort(({ x: a }, { x: b }) => a - b);
return [
{