{"ScriptPreparationCode":null,"TestCases":[{"Name":"Sort first","Code":"const sample = {date: new Date(), value:1};\r\nconst usage = Array(10).fill(sample);\r\nusage.sort((a, b) =\u003E a.date.getTime() - b.date.getTime()).map(({ date, value }) =\u003E [date.getTime(), value])","IsDeferred":false},{"Name":"Map first","Code":"const sample = {date: new Date(), value:1};\r\nconst usage = Array(10).fill(sample);\r\nusage.map(({ date, value }) =\u003E [date.getTime(), value]).sort((a, b) =\u003E a[0] - b[0])","IsDeferred":false}]}