Team:ETH Zurich/labblog/buttons

From 2014.igem.org

(Difference between revisions)
Line 20: Line 20:
     $('.link-sort-list').click(function(e) {
     $('.link-sort-list').click(function(e) {
$("#sort-list article").sort(function (a, b) {
$("#sort-list article").sort(function (a, b) {
-
     return a.date > b.date;
+
     return parseInt(a.attr('date')) > parseInt(b.attr('date'));
}).each(function(){
}).each(function(){
     var elem = $(this);
     var elem = $(this);

Revision as of 16:49, 28 August 2014

View all Lab Weekly Meetings Modeling
Oldest Newest