1. An electronic apparatus, comprising: an extraction means for extracting, from an image, a subject area having a predetermined feature in the image; a first calculation means for calculating a first blur degree that indicates a blur degree of the extracted subject area; a second calculation means for calculating, when the number of subject areas in the image from which the first blur degree is calculated is one, a second blur degree that indicates a blur degree of the entire image based on the first blur degree, and calculating, when the number of subject areas in the image from which the first blur degree is calculated is plural, the second blur degree based on a value obtained by performing weighted averaging on the plurality of first blur degrees in accordance with dimensions of the plurality of subject areas; and a sorting means for sorting an image having the calculated second blur degree that is equal to or larger than a predetermined threshold value, as a blur image, from a plurality of images.