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.
search
AI OnAI Off
I am searching for PurchaseOrders using the ordercontext.Search method.
Here I can specify a where clause on the MetaField using the property SqlMetaWhereClause on the OrderSearchParameters. But how can i perform sort on the meta field.
Coming from version 7.5, we got away by writing the order by clause in the SqlMetaWhereClause itself. But after upgrading to the 13.26, its breaking with the error - The ORDER BY clause is invalid in views, inline functions, derived tables ..... as the underlying meta tables are converted to views.
Now is there any way I can do an order by on meta fields?
Thanks.