Sort Posts by WP Favorite Posts meta field in custom wordpress query

If you would like to have a page or module that displays posts or custom posts sorted by the amount of favorites each post has, ie. sorting your posts query into lists like “Most popular posts” or “Most favorited posts”, you can do so with the WP Favorite Posts plugin and adding the following argument before your custom query.