调整排序

This commit is contained in:
liaozetao
2024-03-21 11:34:49 +08:00
parent fce98389cf
commit 379f48a05d

View File

@@ -160,9 +160,9 @@ export default {
};
this.items.splice(this.items.length, 0, item);
this.items = this.items.sort((a, b) => {
if (a.minValue > b.minValue) {
if (a.minValue < b.minValue) {
return -1;
} else if (a.minValue < b.minValue) {
} else if (a.minValue > b.minValue) {
return 1;
} else {
return 0;