Could you help me with CSS in the search and sort function?

Hi, I am placing search and sort function in the members list page, but especially the sort part went weird like you can see in the following picture.

How can I make the page similarly like the following picture?

Thank you.