public SortDescriptor <T> NestedPath(Expression <Func <T, object> > objectPath)
        {
            var resolver = new PropertyNameResolver();

            _NestedPath = resolver.Resolve(objectPath);
            return(this);
        }
        public virtual SortDescriptor <T> OnField(Expression <Func <T, object> > objectPath)
        {
            var resolver = new PropertyNameResolver();

            var fieldName = resolver.Resolve(objectPath);

            var fieldAttributes = resolver.ResolvePropertyAttributes(objectPath);

            if ((fieldAttributes.Where(x => x.AddSortField == true)).Any())
            {
                fieldName += ".sort";
            }

            return(this.OnField(fieldName));
        }