I'm working with the old tag query format so I can pull multiple tags. I'd like to order the tags by a custom property called "postDate", I can order by ID with the following:
var oldTaggedList = umbraco.cms.businesslogic.Tags.Tag.GetDocumentsWithTags(@tags)
.OrderByDescending(n => n.Id);
But things like this don't work.
var oldTaggedList = umbraco.cms.businesslogic.Tags.Tag.GetDocumentsWithTags(@tags)
.OrderByDescending(n => n.GetPropertyValue("postDate"));
Order Tagged List by Custom Property
Hi,
I'm working with the old tag query format so I can pull multiple tags. I'd like to order the tags by a custom property called "postDate", I can order by ID with the following:
var oldTaggedList = umbraco.cms.businesslogic.Tags.Tag.GetDocumentsWithTags(@tags) .OrderByDescending(n => n.Id);
But things like this don't work.
var oldTaggedList = umbraco.cms.businesslogic.Tags.Tag.GetDocumentsWithTags(@tags) .OrderByDescending(n => n.GetPropertyValue("postDate"));
Any ideas?
Thanks
Amir
is working on a reply...