How to add Sort by Popularity?

How do I add the Sort by Popularity option with the latest update? What sources to choose from?

Query Sort, Filter & Live Search – Bricks Academy (bricksbuilder.io)