diff --git a/dashboard_static/js/code.js b/dashboard_static/js/code.js index 267288c..3dcf2c8 100644 --- a/dashboard_static/js/code.js +++ b/dashboard_static/js/code.js @@ -136,7 +136,7 @@ function sortTweets(tweets, sort){ } if (sort.sortby == "time"){ if(sort.order == 'asc'){ - tweets.sort(function(a,b){return Date(b.created_at)-Date(a.reply_count)}) + tweets.reverse() } else{ tweets.sort(function(a,b){return Date(a.created_at)-Date(b.reply_count)}) }