{"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":"Javascript","Code":"var sortBy = (key) =\u003E {\r\n return (a, b) =\u003E (a[key] \u003E b[key]) ? 1 : ((b[key] \u003E a[key]) ? -1 : 0);\r\n};\r\n\r\narr.sort(sortBy(\u0027age\u0027));","IsDeferred":false}]}