Sort using multiple fields

Is there a way to sort using multiple fields using the SharePoint Lookup control?

I know I can do the following:
fd.field('MyField').orderBy = { field: 'EndDate', desc: true };

However, I'd like to sort the elements by EndDate (desc) and then Name (asc). Can this be done?

Thank you.

Found my answer. Sorry.

https://plumsail.com/docs/forms-sp/javascript/fields-sp.html#lookup-lookupmulti

1 Like