调整排序

This commit is contained in:
liaozetao
2024-03-21 11:34:49 +08:00
parent 8ca3bcd9fc
commit 2f6c2a03a4

View File

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