dashboard sorting fix
diff --git a/init.js b/init.js
index 0347235..0edd1c0 100644
--- a/init.js
+++ b/init.js
@@ -702,9 +702,11 @@
jQuery(".classContent .dash .assignmentStream").html(dtps.renderStream(buffer.sort(function (a, b) {
var keyA = new Date(a.dueDate),
keyB = new Date(b.dueDate);
+ if (a.dueDate == null) keyA = 999999999999999999;
+ if (b.dueDate == null) keyB = 999999999999999999;
// Compare the 2 dates
- if (keyA < keyB) return 1;
- if (keyA > keyB) return -1;
+ if (keyA > keyB) return 1;
+ if (keyA < keyB) return -1;
return 0;
})));
$(".card.assignment").addClass("color");