 				a[1] - b[1]
 			)
 
+			return sortedStats
+
+		_updateStatTable: ( sortedStats ) ->
+			statRows = $('#statRows')
+			statRows.empty()
+			rank = 1
+			for stat in sortedStats
+				statRows.append("<tr><td>#{rank++}</td><td>#{stat[0]}</td><td>#{stat[1]}</td><td>#{stat[2]}</td><td>#{stat[3]}</td></tr>")
+
+		showStats: ( stats ) ->
+			@_statsVisible = true
+
+			sortedStats = @_sortStats(stats)
+
 			@display('stats', ( ) =>
-				@_statsVisible = true
-				statRows = $('#statRows')
-				statRows.empty()
-				rank = 1
-				for stat in sortedStats
-					statRows.append("<tr><td>#{rank++}</td><td>#{stat[0]}</td><td>#{stat[1]}</td><td>#{stat[2]}</td><td>#{stat[3]}</td></tr>")
+				@_updateStatTable(sortedStats)
 			, ( ) =>
 				@_statsVisible = false
 			)
 
-		setStats: ( @_stats ) =>
+		setStats: ( stats ) =>
 			if @_statsVisible
-				@showStats(@_stats)
+				sortedStats = @_sortStats(stats)
+				@_updateStatTable(sortedStats)
 
 		# Shows the InfoView
 		#


				statsFormatted[id].kills = kills

			for id, deaths of _stats.deaths
				unless statsFormatted[id]
					statsFormatted[id] = {
						kills: 0

		showPlayerDiedScreen: ( ) =>
			@display('player_died')

		_sortStats: ( stats ) ->
			statsFormatted = {}
			for id, kills of stats.kills
				unless statsFormatted[id]
					statsFormatted[id] = {
						kills: 0
