volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

AI OnAI Off

Query and Attributes

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

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

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

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
error 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.