Made OrderBy(Name) and OrderBy(name) work the same as OrderBy(nodeName)

This commit is contained in:
agrath
2011-10-09 06:16:24 -13:00
parent 293007b8f0
commit 407f78c84b

View File

@@ -249,7 +249,7 @@ namespace System.Linq.Dynamic
{
value = (firstFuncResult as Func<DynamicNode, object>)(node);
}
if (firstFuncResult.GetType().IsValueType)
if (firstFuncResult.GetType().IsValueType || firstFuncResult is string)
{
value = firstFuncResult;
}