fix lobby rating order - fixes #1296

fixes it... maybe. It's kinda hard to test locally.

edit: yes it's fixed :)
pull/1301/head
Thibault Duplessis 2015-12-08 23:15:27 +07:00
parent 3c971dc50a
commit 75664877f2
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
function ratingOrder(a, b) {
return a.rating > b.rating ? -1 : 1;
return (a.rating || 0) > (b.rating || 0) ? -1 : 1;
}
function timeOrder(a, b) {