Fix hotswap sorting

This commit is contained in:
SillyLossy
2023-05-12 17:01:53 +03:00
parent d1edda6902
commit c1350c9175
4 changed files with 11 additions and 2 deletions

View File

@ -182,4 +182,10 @@ export async function initScrollHeight(element) {
$(element).css("height", "");
$(element).css("height", `${newHeight}px`);
//resetScrollHeight(element);
}
export function sortByCssOrder(a, b) {
const _a = Number($(a).css('order'));
const _b = Number($(b).css('order'));
return _a - _b;
}