Implement ORDER BY supplier_value DESC, supplier_quantity ASC using order_by_metadata

Hi everyone,

How can I do ORDER BY supplier_value DESC, supplier_quantity ASC using order_by_metadata, where supplier_value and supplier_quantity are metadata name of my entity.

I used to do like this with one metadata name. How to add supplier_value in order by

'order_by_metadata' => [

'name' => 'supplier_value',

'direction' => 'DESC',

'as' => 'integer'

]
 
Regards,
 
 
Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking