mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-13 07:48:37 +01:00
Sort buffers by network
This commit is contained in:
parent
002b91a599
commit
d2ff88d946
@ -69,6 +69,13 @@ function debounce(f, delay) {
|
||||
}
|
||||
|
||||
function compareBuffers(a, b) {
|
||||
if (a.network < b.network) {
|
||||
return -1;
|
||||
}
|
||||
if (a.network > b.network) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (a.type == BufferType.SERVER) {
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user