Task: Sort data based on numberical values in Ascending

n8n workflow JSON:
{"nodes":[{"name":"Mock Data","type":"n8n-nodes-base.function","position":[1085,329],"parameters":{"functionCode":"return [\n  {\n    json: {\n      name: 'Stefan',\n      id: 3,\n    }\n  },\n  {\n    json: {\n      name: 'Jim',\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":[1285,329],"parameters":{"functionCode":"const sortedArr = items.sort((a, b) => {\n    return a.json.id - b.json.id;\n})\nreturn sortedArr\n"},"typeVersion":1}],"connections":{"Mock Data":{"main":[[{"node":"Sort in Ascending","type":"main","index":0}]]}}}