代码提示改为字典排序

This commit is contained in:
shijian 2023-09-27 00:35:44 +08:00
parent ed5fee1517
commit c6bbf265de
1 changed files with 1 additions and 1 deletions

View File

@ -7560,7 +7560,7 @@
list.addArray(keys);
}
return {
list:list.filter(key=>key.startsWith(token.string)),
list:list.filter(key=>key.startsWith(token.string)).sort((a,b)=>(a+'').localeCompare(b+'')),
from:CodeMirror.Pos(cur.line,token.start),
to:CodeMirror.Pos(cur.line,token.end),
};