qd-today / qd

QD [v20240210] —— HTTP请求定时任务自动执行框架 base on HAR Editor and Tornado Server
https://qd-today.github.io/qd/
MIT License
4.2k stars 546 forks source link

[Feature] sort、max 函数排序优化 #521

Open NineHolic opened 4 months ago

NineHolic commented 4 months ago

Verify steps

Describe the Feature

image 对列表进行排序:{{nums|sort}},最大值:{{nums|max}} 排序后:['0', '1', '10', '3', '32', '4', '5'],最大值:5 结果没有按数字实际大小排序,最大值也不对

Describe the solution

框架提取的变量是字符串,最后按字符串的字典顺序进行了排序,而不是按照数字的大小,希望可以优化一下

Describe alternatives

No response

Additional context

No response