|
@@ -64,6 +64,24 @@ namespace GFGGame
|
|
|
}
|
|
|
private void UpdateView()
|
|
|
{
|
|
|
+ //排序
|
|
|
+ MatchingCompetitionDataManager.Instance._currentRankList.Sort((a, b) =>
|
|
|
+ {
|
|
|
+ // 假设列表项具有一个名为 'score' 的属性,你想要按照分数进行排序
|
|
|
+ if (a.JudgingInfo.Score > b.JudgingInfo.Score)
|
|
|
+ {
|
|
|
+ return -1; // a在b之前
|
|
|
+ }
|
|
|
+ else if (a.JudgingInfo.Score < b.JudgingInfo.Score)
|
|
|
+ {
|
|
|
+ return 1; // b在a之前
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ return 0; // a和b相同
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
if(MatchingCompetitionDataManager.Instance._currentRankList.Count > 0)
|
|
|
{
|
|
|
MatchingPhotoWorksData otherInfo = MatchingCompetitionDataManager.Instance._currentRankList[0];
|