{"ScriptPreparationCode":"var arr = [\r\n {name: \u0022test\u0022, age: 20},\r\n {name: \u0022best\u0022, age: 30},\r\n {name: \u0022blah\u0022, age: 50},\r\n {name: \u0022js\u0022, age: 10},\r\n {name: \u0022style\u0022, age: 29},\r\n];","TestCases":[{"Name":"Lodash","Code":"_.sortBy(arr, \u0027age\u0027);","IsDeferred":false},{"Name":"Native","Code":"const sortBy = function(key){\r\n return (a,b)=\u003E (a[key]\u003Eb[key]) ? 1 : (b[key]\u003Ea[key]) ? -1 : 0;\r\n};\r\narr.sort(sortBy(\u0027age\u0027));","IsDeferred":false}]}