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)