diff --git a/controllers/prototype/index.js b/controllers/prototype/index.js index 5c0eb0b..316af27 100644 --- a/controllers/prototype/index.js +++ b/controllers/prototype/index.js @@ -45,7 +45,7 @@ var getPathFromId = function(req, res, callback, id) { "((camera).target).x AS tx, " + "((camera).target).y AS ty, " + "((camera).target).z AS tz " + - "FROM keyboardevent WHERE user_id = $1;", + "FROM keyboardevent WHERE user_id = $1 ORDER BY time;", [id], function(err, result) { res.locals.path = [];