Skip to content

Commit

Permalink
Matches view update
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Goto committed Jul 27, 2011
1 parent 8446b71 commit a8443c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grails-app/controllers/spl/ProfileController.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class ProfileController {
def entry
def matchesList = []
if ((user != null) && (user.registrations.toArray().size() != 0)) {
entry = user.registrations.toArray().first()
entry = user.registrations.toArray().sort{-it.id}.first()
matchesList = entry.matches.toArray().sort{[it.matchNumber]}
}
[matchesInstanceList: matchesList, entryInstance: entry]
Expand Down

0 comments on commit a8443c6

Please sign in to comment.