In a game UI, having a ScrollView is very useful, whether to show a list of players, leaderboards, or even items. If you use this type of component (you probably do) you may have already had the need to filter or order these items programmatically.
Here I bring a simple to implement solution. Basically you will add a script to the items that go into the "Content" of the "Scroll Rect" Component with the variables you want to use as filters and another Script to the "Scroll Rect" Component that will be the "engine" that will do the work to filter and sort items inside the ScrollView.
Demo: https://gamestrike.com.br/ScrollviewFilter/
License attribution: Filter icons created by Freepik - Flaticon