How to sort items by category on a dynamic page list

I have created a dynamic page - Recipes (All) - that contains a repeater with 20 recipes. The recipe dataset contains a field called “level” and here I have listed beginner, intermediate, advanced. Now I want to add 3 buttons in the page labeled “beginner”, “intermediate” and “advanced” so that when the user clicks on any of them, they will see only the recipes with the corresponding level of difficulty in the repeater.
Below is the screenshot of the page. How do I create the sort-by-category buttons?