November Happy Hour will be moved to Thursday December 5th.

Query and Attributes

Vote:
 

Hi,

 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? 

 

#21654
Jul 03, 2008 17:14
Vote:
 

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

Is this possible?

 

 

#24580
Oct 01, 2008 14:02
Vote:
 

Hi!

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.

/Mattias 

#24613
Oct 02, 2008 9:26
Vote:
 

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

#54806
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.