|
@@ -183,15 +183,16 @@
|
|
|
var value = this.orderByIndex.value
|
|
|
var childDcMap = []
|
|
|
var id = this.remoteMonitorMeter.id;
|
|
|
- if (it1.meterId == id) {
|
|
|
-
|
|
|
- return -1
|
|
|
- }
|
|
|
- if (it2.meterId == id) {
|
|
|
-
|
|
|
- return 1
|
|
|
- }
|
|
|
- this.childDcMap.sort((it1, it2) => {
|
|
|
+
|
|
|
+ this.childDcMap.sort((it1, it2) => {
|
|
|
+ if (it1.meterId == id) {
|
|
|
+
|
|
|
+ return -1
|
|
|
+ }
|
|
|
+ if (it2.meterId == id) {
|
|
|
+
|
|
|
+ return 1
|
|
|
+ }
|
|
|
if (value == '0') {
|
|
|
return it1.abDifference < it2.abDifference ? 1 : -1
|
|
|
} else if (value == '1') {
|