1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-04 08:50:18 +01:00

scope if shorthand

This commit is contained in:
Kyle Spearrin 2018-01-11 12:07:13 -05:00
parent 9eba3064a7
commit 0950510526

View File

@ -343,7 +343,7 @@ namespace Bit.App.Pages
{
// Sort numbers and letters before special characters
return !string.IsNullOrWhiteSpace(s.Name) && s.Name.Length > 0 &&
Char.IsDigit(s.Name[0]) ? 0 : Char.IsLetter(s.Name[0]) ? 1 : 2;
Char.IsDigit(s.Name[0]) ? 0 : (Char.IsLetter(s.Name[0]) ? 1 : 2);
})
.ThenBy(s => s.Name)
.ThenBy(s => s.Subtitle)