Sort buffers by network
This commit is contained in:
@@ -69,6 +69,13 @@ function debounce(f, delay) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function compareBuffers(a, b) {
|
function compareBuffers(a, b) {
|
||||||
|
if (a.network < b.network) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
if (a.network > b.network) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
if (a.type == BufferType.SERVER) {
|
if (a.type == BufferType.SERVER) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user