Try our conversational search powered by Generative AI!

Query and Attributes



 if i try to sort on an attribulte like so:


mq.OrderBy.Add(new CriterionSortOrder(mq["ChangedDate"], SortingDirection.Descending)) ;
I get the following error message:  
The criterion 'Criterion' does not represent a database column, and cannot be sorted on.  
Does this mean that there is no way to sort on attributes with the query-system? 


Jul 03, 2008 17:14

I have the same issue where i need to be able to sort on customattribute of the entity.

Is this possible?



Oct 01, 2008 14:02


For the moment it is not possible to sort on attributes using the query system. This is something we are planning on supporting in the future.


Oct 02, 2008 9:26

I realise this post was made more than 3 years ago, but is there any way besides using LINQ, to sort on attributes?

Nov 03, 2011 14:46
This thread is locked and should be used for reference only. Please use the Legacy add-ons forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.