{"ScriptPreparationCode":"var dates = [\r\n \u00272021-11-22T11:00:00.000Z\u0027,\r\n \u00272021-11-22T07:00:00.000Z\u0027,\r\n \u00272021-11-24T12:30:00.000Z\u0027,\r\n \u00272021-11-24T07:00:00.000Z\u0027,\r\n \u00272021-11-24T07:00:00.000Z\u0027,\r\n \u00272021-11-26T07:00:00.000Z\u0027,\r\n \u00272021-11-26T12:30:00.000Z\u0027,\r\n \u00272021-11-26T12:30:00.000Z\u0027,\r\n \u00272021-11-27T11:00:00.000Z\u0027,\r\n \u00272021-11-27T12:30:00.000Z\u0027,\r\n \u00272021-09-22T11:00:00.000Z\u0027,\r\n \u00272021-09-22T07:00:00.000Z\u0027,\r\n \u00272021-09-24T12:30:00.000Z\u0027,\r\n \u00272021-09-24T07:00:00.000Z\u0027,\r\n \u00272021-09-24T07:00:00.000Z\u0027,\r\n \u00272021-09-26T07:00:00.000Z\u0027,\r\n \u00272021-05-26T12:30:00.000Z\u0027,\r\n \u00272021-12-26T12:30:00.000Z\u0027,\r\n \u00272021-09-27T11:00:00.000Z\u0027,\r\n \u00272021-09-27T12:30:00.000Z\u0027,\r\n];\r\n","TestCases":[{"Name":"sort","Code":"const sorted = dates.sort();","IsDeferred":false},{"Name":"localcompare","Code":"const sorted = dates.sort((a,b)=\u003Ea.localeCompare(b));","IsDeferred":false},{"Name":"manual compare","Code":"const sorted = dates.sort(( a, b )=\u003E a \u003C b ? -1 : a \u003E b ? 1 : 0);","IsDeferred":false},{"Name":"date convert to date \u002B sort a-b (timezone safe)","Code":"const sorted = dates.map(date=\u003Enew Date(date)).sort(( a, b )=\u003E a-b);","IsDeferred":false},{"Name":"date convert to timestamp \u002B sort (timezone safe)","Code":"const sorted = dates.map(date=\u003EDate.parse(date)).sort();","IsDeferred":false}]}