You need a small function to convert the date strings to Date objects:
// Create a Date object from a date string in the format Tue May 27 2014 06:56:06
function parseDate(d) {
var months = {jan:0,feb:1,mar:2,apr:3,may:4,jun:5,
jul:6,aug:7,sep:8,oct:9,nov:10,dec:11};
var b = d.split(/[ :]/);
return new Date(b[3], months[b[1].toLowerCase()], b[2], b[4], b[5], b[6]);
}
Then you can use date objects in the sort function:
var dataTable = [
['Fri Jun 13 2014 17:44:25 GMT+0200 (W. Europe Daylight Time)',4],
['Tue May 27 2014 06:56:06 GMT+0200 (W. Europe Daylight Time)',4]
];
dataTable.sort(function(a, b){
return parseDate(a[0]) - parseDate(b[0])
});
Note that calling the Date function as a constructor with a string argument (see ECMAScript §15.9.3.2) is the same as calling Date.parse and that parsing of date strings is largely implementation dependent and unreliable, even when using the format specified in ECMA-262 in browsers that support it.