diff --git a/docs/js/demos/homepage.js b/docs/js/demos/homepage.js index dcbce8d..7fba925 100644 --- a/docs/js/demos/homepage.js +++ b/docs/js/demos/homepage.js @@ -130,7 +130,7 @@ Demo.prototype._handleSortChange = function (evt) { var options = {}; function sortByDate(element) { - return element.getAttribute('data-created'); + return Date.parse(element.getAttribute('data-date-created')); } function sortByTitle(element) {