mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-07 01:08:49 +01:00
🎨 Use natural ascending order when inserting multiple assets https://github.com/siyuan-note/siyuan/issues/14643
This commit is contained in:
parent
c03a80263f
commit
6bf9f0429d
1 changed files with 2 additions and 0 deletions
|
|
@ -121,6 +121,8 @@ const genUploadedLabel = (responseText: string, protyle: IProtyle) => {
|
|||
}
|
||||
let successFileText = "";
|
||||
const keys = Object.keys(response.data.succMap);
|
||||
// 插入多个资源文件时按文件名自然升序排列 Use natural ascending order when inserting multiple assets https://github.com/siyuan-note/siyuan/issues/14643
|
||||
keys.sort((a, b) => a.localeCompare(b, undefined, { numeric: true }));
|
||||
const avAssets: IAVCellAssetValue[] = [];
|
||||
let hasImage = false;
|
||||
keys.forEach((key, index) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue