Commit 64cd94c7 authored by Ujvari Gergely's avatar Ujvari Gergely

Minor fixes:

- Fixed data.sort function in manage_new_data()
- Reply count for main annotation restored
parent d79e26d6
......@@ -20,6 +20,8 @@ class Displayer
$scope.annotations = [$scope.annotation]
$scope.annotation.replies = []
$scope.annotation.reply_count = 0
$scope.annotation.ref_length =
if $scope.annotation.references? then $scope.annotation.references.length else 0
@idTable[$scope.annotation.id] = $scope.annotation
$scope.filter =
streamfilter
......@@ -62,7 +64,7 @@ class Displayer
#sort annotations by creation date
data.sort (a, b) ->
if a.created > b.created then return 1
if a.created > b.created then return -1
if a.created < b.created then return -1
0
for annotation in data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment