Set sort order with search keyword

is it possible to insert any query that we can search in database and also set order ASC or DESC .
Example: if search el then it display all company with search keyword and also possible to set order?

Where are you planning to display this?

Currently the search won’t work in particularly set order the way you’re talking, but are you gathering the search results via API? If so, you can of course then display them how you’d wish.