|
|
@ -26,7 +26,7 @@ export default class ScoreRepo { |
|
|
|
}; |
|
|
|
|
|
|
|
getHighScores = () => { |
|
|
|
let score = this.realmDB.objects(ScoreEntity.name); |
|
|
|
let score = this.realmDB.objects(ScoreEntity.name).sorted('value', true); |
|
|
|
let highScores = []; |
|
|
|
score.forEach((row) => { |
|
|
|
highScores.push({user: row.user, value: row.value}); |
|
|
|