decord/source/modules/soundboard/useSoundOrganizer.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

44 lines
1.2 KiB
TypeScript

// Module ID: 17067
// Function ID: 17068
// Name: sortSoundsOldestToNewestCreationDate
// Dependencies: [11, 2]
// Exports: useSoundOrganizer
// Module 17067 (sortSoundsOldestToNewestCreationDate)
import set from "set" /* 2 */;
function sortSoundsOldestToNewestCreationDate(value2) {
let flag = arg1;
if (arg1 === undefined) {
flag = true;
}
const items = [...value2];
const sorted = items.sort((soundId, soundId2) => callback(table[0]).compare(soundId.soundId, soundId2.soundId));
let sorted1 = sorted;
if (flag) {
const items1 = [];
HermesBuiltin.arraySpread(sorted, 0);
sorted1 = items1.sort((available, available2) => {
if (!available.available) {
let num2 = 0;
if (!available.available) {
num2 = 0;
if (available2.available) {
num2 = 1;
}
}
let num = num2;
} else {
num = -1;
}
return num;
});
}
return sorted1;
}
const result = set.fileFinishedImporting("modules/soundboard/useSoundOrganizer.tsx");
export { sortSoundsOldestToNewestCreationDate };
export function useSoundOrganizer() {
return sortSoundsOldestToNewestCreationDate;
}