Fixed sorting hopefully

master
Keith Irwin 2022-09-15 22:02:58 -06:00
parent fd4d555ae8
commit af608dc834
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
1 changed files with 2 additions and 2 deletions

View File

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