From 7e01c0bbda7be6152c32caf217030df9ed9acc6a Mon Sep 17 00:00:00 2001 From: Tsanie Lily Date: Wed, 20 May 2020 10:19:07 +0800 Subject: [PATCH] fix: user related order issue --- Pixiview/Illust/UserIllustPage.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pixiview/Illust/UserIllustPage.xaml.cs b/Pixiview/Illust/UserIllustPage.xaml.cs index 84f4d51..bf7d77e 100644 --- a/Pixiview/Illust/UserIllustPage.xaml.cs +++ b/Pixiview/Illust/UserIllustPage.xaml.cs @@ -60,7 +60,7 @@ namespace Pixiview.Illust { return null; } - illustIds = init.body.illusts.Keys.OrderByDescending(i => i).ToArray(); + illustIds = init.body.illusts.Keys.OrderByDescending(i => int.TryParse(i, out int id) ? id : -1).ToArray(); App.DebugPrint($"user has ({illustIds.Length}) illusts."); startIndex = 0; }