internal bool IsValidSortID(int sortID)
{
BCLDebug.Assert(sortID >= 0 && sortID <= 0xffff, "sortID is invalid"); // SortID is 16-bit positive integer.
if(sortID == 0 ||
(this.SALTSORTID != null &&
this.SALTSORTID.Length >= sortID &&
this.SALTSORTID[sortID - 1].Length != 0))
{
return true;
}
else
{
return false;
}
}