function hasMoveToTop2(array) {
array.sort((a, b) => {
if (new Date(a.date) < new Date(b.date)) return -1;
if (new Date(a.date) > new Date(b.date)) return 1;
return 0;
})
array.sort((a, b) => {
if (a.has) return -1;
if (b.has) return 1;
return 0;
});
return array;
}