Task: Sort data based on string values in Descending Order

n8n workflow:
{"nodes":[{"name":"Mock Data","type":"n8n-nodes-base.function","position":[1340,335],"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 Descending","type":"n8n-nodes-base.function","position":[1540,335],"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 Descending","type":"main","index":0}]]}}}