You can change the order of the image easily from Catalog ➤ Products. Select the product and hit the “Edit” button. The Product configuration page will open up.
Now scroll down to the Images and Videos section. Here you can change the order of your images by just drag and drop and it will reflect on the frontend.