How to fetch specific item first in template and then fetch other on function-based views?

In django template I am looping model on following way:

{% for image in image%}
{{image.image.url}}
{% endfor %}

Here I want to get the image where,

image model has featured_image Boolean option. Here while looping, I want to loop the image which has featured_image=True first and then rest of the images.

How can I do this with single for loop?

This way did not work:

image= ProductGallery.objects.filter(products=product).order_by(is_featured=True)

Wrong usage of order_by. Try:

images = ProductGallery.objects.filter(products=product).order_by('featured_image')

or

images = ProductGallery.objects.filter(products=product).order_by('-featured_image')