Hi Fah,
You can use the code you posted in
https://buddydev.com/support/forums/topic/how-to-sort-sitewide-gallery-2/That will do it.
Also, since you did not reply there, I will be marking that as resolved(It will be open for reply for next few days).
Regards
BrajeshHi Fah,
I am sorry to hear that.
Did you apply the order parameter to “ASC” as by default it is not set to ASC? If yes, Please let me know and I will look into it.Regards
BrajeshInstead of
$args['order'] = 'ASC';
Please use both.
$args['orderby'] = 'title'; $args['order'] = 'ASC';
Does that work?
Thank you for confirming.
Yes, That is expected behaviour. User’s reordering manually overwrites the default.
I also believe it is the correct way to avoid user confusion.
Marking resolved.
Regards
Brajesh
The topic ‘ [Resolved] Sort Single Document Gallery’ is closed to new replies.