Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Progark gruppe 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Ingebrigt Ørstad
Progark gruppe 3
Merge requests
!52
Resolve "Playername and sort for viewhs4game"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Playername and sort for viewhs4game"
55-playername-and-sort-for-viewhs4game
into
dev
Overview
0
Commits
3
Pipelines
0
Changes
3
Merged
Haakon Gunleiksrud
requested to merge
55-playername-and-sort-for-viewhs4game
into
dev
5 years ago
Overview
0
Commits
3
Pipelines
0
Changes
3
Expand
Closes
#55 (closed)
Edited
5 years ago
by
Haakon Gunleiksrud
0
0
Merge request reports
Compare
dev
version 2
a6cf82b5
5 years ago
version 1
7595166d
5 years ago
dev (base)
and
latest version
latest version
fd386581
3 commits,
5 years ago
version 2
a6cf82b5
2 commits,
5 years ago
version 1
7595166d
1 commit,
5 years ago
3 files
+
18
−
13
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
frontend/core/src/com/gameware/game/models/Highscore.java
+
7
−
0
Options
@@ -2,6 +2,8 @@ package com.gameware.game.models;
import
com.badlogic.gdx.utils.Json
;
import
java.util.Comparator
;
public
class
Highscore
{
private
String
_id
;
private
String
gameId
;
@@ -57,4 +59,9 @@ public class Highscore {
return
report
();
}
public
static
Comparator
<
Highscore
>
hsValueComparator
=
new
Comparator
<
Highscore
>()
{
public
int
compare
(
Highscore
hs1
,
Highscore
hs2
)
{
return
(
int
)
(
hs2
.
getValue
()
-
hs1
.
getValue
());
}};
}
Loading