Fix compare interfaces. (#5173)

This commit is contained in:
Alexander Shursha 2021-08-23 10:20:47 +03:00 committed by GitHub
parent d0630be3b0
commit 4b60a9893e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,7 @@ function filter_rules_sort()
return -1;
} elseif (isset($b['floating'])) {
return 1;
} elseif ($a['interface'] == $b['interface']) {
} elseif ($a['interface'] != $b['interface']) {
return $a['seq'] - $b['seq'];
} elseif ($a['interface'] == $b['interface']) {
return 0;