diff --git a/src/renderer/worker/main/list.ts b/src/renderer/worker/main/list.ts index 92f12dc9..ccb31ac1 100644 --- a/src/renderer/worker/main/list.ts +++ b/src/renderer/worker/main/list.ts @@ -82,7 +82,43 @@ const getIntv = (musicInfo: LX.Music.MusicInfo) => { export const sortListMusicInfo = async(list: LX.Music.MusicInfo[], sortType: 'up' | 'down', fieldName: 'name' | 'singer' | 'albumName' | 'interval' | 'source', localeId: string) => { // console.log(sortType, fieldName, localeId) // const locale = new Intl.Locale(localeId) - if (sortType == 'up') { + if (sortType == 'unorder' && (fieldName =='name' || fieldName == 'singer' || fieldName =='albumName' || fieldName =='interval' || fieldName =='source')){ + + let change_num:number[]=[] + + for(let i:number = 0;i { if (a.interval == null) { @@ -138,6 +174,9 @@ export const sortListMusicInfo = async(list: LX.Music.MusicInfo[], sortType: 'up } } return list + + } + } const variantRxp = /(\(|().+(\)|))/g