Task: Sort data based on string values in Ascending Order

n8n workflow JSON:
{"nodes":[{"name":"Mock Data","type":"n8n-nodes-base.function","position":[1202,233],"parameters":{"functionCode":"return [\n  {\n    json: {\n      name: 'Jim',\n      id: 3,\n    }\n  },\n  {\n    json: {\n      name: 'Stefan',\n      id: 1,\n    }\n  },\n  {\n    json: {\n      name: 'Hans',\n      id: 2,\n    }\n  }\n];\n"},"typeVersion":1},{"name":"Sort in Ascending","type":"n8n-nodes-base.function","position":[1402,233],"parameters":{"functionCode":"const sortedArr = items.sort((a, b) => {\n    let a_name = a.json.name.toLowerCase(),\n        b_name = b.json.name.toLowerCase();\n\n    if (a_name < b_name) {\n        return -1;\n    }\n    if (a_name > b_name) {\n        return 1;\n    }\n    return 0;\n});\nreturn sortedArr;\n"},"typeVersion":1}],"connections":{"Mock Data":{"main":[[{"node":"Sort in Ascending","type":"main","index":0}]]}}}