{"ScriptPreparationCode":"var size = 10000\r\nvar arr = []\r\nconst now = \u002Bnew Date()\r\nfor (let i = 0; i \u003C size; i\u002B\u002B) {\r\n arr.push({\r\n createdAt: new Date(now\u002B1000*i).toISOString() \r\n })\r\n}","TestCases":[{"Name":"Sort on string","Code":"const result = arr.sort((a, b) =\u003E a.createdAt \u003C b.createdAt)","IsDeferred":false},{"Name":"Convert to date, then sort","Code":"const result = arr.sort((a, b) =\u003E new Date(a.createdAt) \u003C new Date(b.createdAt))","IsDeferred":false},{"Name":"Convert to number, then sort","Code":"const result = arr.sort((a, b) =\u003E \u002Bnew Date(a.createdAt) \u003C \u002Bnew Date(b.createdAt))","IsDeferred":false}]}