How to change priority of tabs on product page in Woocommerce?

In this tutorial we’ll learn how to change the priority of tabs on product page in woocommerce.
We can achieve this by using one of woocommerce’s default filters.
Here is our default single product screen.

As you can see from here, description tab is being displayed before reviews tab.

Now let’s say we want to display reviews tab before description tab.

To do this add the following lines of code at the end of your theme’s functions.php file.