I want to sort the product search results by featured attribute(Yes/No type) so featured product comer first then show non-featured products. Currently, my search result is mixing in featured & non-featured items.

Ex: If the user searches the product, search results if any product assigned as featured that products come first and rest of the products after featured products.

Please help me to fix it.