var driver = {
title: 'водитель',
result: 5
};
var spaceman = {
title: 'космонафт',
result: 2
};
var doctor = {
title: 'доктор',
result: 8
};
var resultArray = [driver, spaceman, doctor];
resultArray.sort(function(a,b){return b.result - a.result});
console.log(resultArray);