fix: user related order issue

This commit is contained in:
Tsanie Lily 2020-05-20 10:19:07 +08:00
parent 67a3995bf2
commit 7e01c0bbda

View File

@ -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;
}