11 lines
577 B
TypeScript
11 lines
577 B
TypeScript
// Metro module 15893 (f15894).
|
|
import SnowflakeUtils from "../../utils/SnowflakeUtils";
|
|
const sortSoundsOldestToNewestCreationDate = function sortSoundsOldestToNewestCreationDate(a0, r6 = true) {
|
|
const r12 = [...a0].sort((a, b) => SnowflakeUtils.compare(a.soundId, b.soundId));
|
|
return r6 ? [...r12].sort((a, b) => a.available ? b.available ? a.available ? 0 : b.available ? 1 : 0 : -1 : a.available ? 0 : b.available ? 1 : 0) : r12;
|
|
};
|
|
export { sortSoundsOldestToNewestCreationDate };
|
|
export function useSoundOrganizer() {
|
|
return sortSoundsOldestToNewestCreationDate;
|
|
}
|