public IOrderedQueryable<Rock.Model.DefinedType> GetByFieldTypeId( int? fieldTypeId ) { return Queryable() .Where( t => ( t.FieldTypeId == fieldTypeId || ( fieldTypeId == null && t.FieldTypeId == null ) ) ) .OrderBy( t => t.Order ); }