cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Descriptor Component query: use "Order" to sort?

chekm8
Contributor

In Mega I have a Folder of Favorite that has items ordered using the "Order" property.   This "Order" seems to be stored as part of the reference link between the folder and the object because if I link the same object o a different folder I can have a different "Order" value.  This makes sense.

 

Is there a way to use that "Order" value to sort the Component query in the descriptor?  The below does not work and my assumption is that its because "Order" is not a part of the object properties dierctly.  ANy way to get this sort on "Order" in the folder to work?

 

[Component="Select [Generic Object] Where [Folder of Favorites]='&Name'" Sorter="Order:A"]

If I can't sort int he query is there a way to output the "Order" value, Ill just sort it client side if I Can't do it server site. 

3 Replies

Publication format of KB change and certain links are indeed not available

 

use another tag component See KB 00000493
use 'option' sort with groups See KB 00000196
Call an external macro to sort See KB 00002635

 

Search KB from this web page https://community.mega.com/t5/custom/page/page-id/mega-kb

Jerome

None of the links are currently working !?

jhorber
MEGA
MEGA

Hi chekm8

 

By design, the list returned by a tag Component using an embedded query is sorted alphabetically (link order is not considered).

 

You can consider to:

 

Jerome