Fixed sorting

master
Keith Irwin 2022-09-15 21:53:17 -06:00
parent 13d2c49af9
commit 6727d362c7
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ function PeerList() {
}
self.peers(
user.peers.sort(
(a,b) => a.ipv4.split('.')[3] - b.ipv4.split('.')[3])
(a,b) => a.ipv4 - b.ipv4)
.map( (i)=>new Peer(i))
)
self.token = user.token