Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 3f92f10

Browse files
committed
addressed comment
1 parent 73c0c62 commit 3f92f10

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/directives/history-graph/history-graph.directive.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@
7979
var desktop = window.innerWidth >= 900 && true;
8080

8181
$scope.promise.then(function(history) {
82-
history.sort(function(lhs, rhs) {
83-
lhs = moment(lhs.ratingDate);
84-
rhs = moment(rhs.ratingDate);
85-
return lhs > rhs ? 1 : lhs < rhs ? -1 : 0;
82+
history.sort(function(left, right) {
83+
left = moment(left.ratingDate);
84+
right = moment(right.ratingDate);
85+
return left > right ? 1 : left < right ? -1 : 0;
8686
})
8787
$scope.history = history;
8888

0 commit comments

Comments
 (0)