var a = [
{ param1: 1, param2: 2, param3: 3 },
{ param1: 11, param2: 22, param3: 33 },
{ param1: 111, param2: 222, param3: 333 }
];
function functionArraySort (arraySort, sortParam){
return arraySort.sort(function (a, b) {
return a[sortParam] - b[sortParam];
});
};
console.log(functionArraySort(a, "param1"));