输入数据
var data = {
"36905b7cb": "(2019-12-26 T 13H-39M-0S) Co-Testing",
"cad5dd7ea": "(2019-12-05 T 16H-38M-9S) Diagnosis",
"sad4217ea": "(2020-03-05 T 16H-38M-9S) Bio-Testing"
}
预期输出
var data = {
"sad4217ea": "(2020-03-05 T 16H-38M-9S) Bio-Testing"
"36905b7cb": "(2019-12-26 T 13H-39M-0S) Co-Testing",
"cad5dd7ea": "(2019-12-05 T 16H-38M-9S) Diagnosis"
}
我们必须根据日期排列数据。不是键
最佳答案
关于javascript - 如何根据日期对 JavaScript 中的对象进行排序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61360435/