This article explains how to automatically sort your incoming messages before they appear in Yahoo Mail when you open Yahoo Mail in a browser on a desktop computer.
Yahoo Mail Tutorial: How to Create Basic Email Filters, Step by Step
If you receive a lot of email, your inbox can become overloaded. Yahoo Mail can automatically group incoming emails for you based on criteria you set. When you create a filter based on specific criteria, you can move messages to folders, archives, or trash. To create a filter in Yahoo Mail, open a web browser and sign in to your Yahoo Mail account.
Select More settings.
On the Yahoo Settings page, select the Filters tab.