I’m using mui’s useAutocomplete hook
https://mui.com/material-ui/react-autocomplete/#useautocomplete
Is it possible to sort options and put selected on top with actual js sorting not flex order or any css workaround?
I have tried using
filterOptions = (options, { inputValue })
however current selection state is notpassed here