This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[\-;:&=\+\$,\w]+@)?[A-Za-z0-9\.\-]+|(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&;%@\.\w_]*)#?(?:[\.\!\/\\\w]*))?)/g |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var list = [ | |
{id: 1, created_at: 'Sun Feb 22 23:19:08 +0000 2009'}, | |
{id: 2, created_at: 'Wed Jun 05 14:07:04 +0000 2013'}, | |
{id: 3, created_at: 'Wed Jun 05 10:11:30 +0000 2013'}, | |
{id: 3, created_at: 'Wed Jun 05 14:01:08 +0000 2013'} | |
]; | |
var sorted = _.sortBy(list,function(node){ | |
return - (new Date(node.created_at).getTime()); | |
}); |