Patent ID: 8456686

Claim:
An image processing apparatus, comprising: a determining unit configured to classify a plurality of images stored in a memory into a plurality of groups, each group including at least one image, and to determine an order of the plurality of classified groups, according to attribute information of each of the plurality of images; a first display control unit configured to cause a display apparatus to display a leading group field for deciding a leading group of the plurality of groups in the order determined by the determining unit, and to display a last group field for deciding a last group of the plurality of groups in the order; a designating unit configured to, in accordance with an instruction by a user based on a display by the first display control unit, designate the leading group field or the last group field as a field for deciding a group; a changing unit configured to, in accordance with an instruction by a user in the field designated by the designating unit, change a group corresponding to the designated field among the leading group and the last group, into another group in the plurality of groups, each group including at least one image; a counting unit configured to, in a case where the leading group or the last group is changed by the changing unit, specify the groups from the current leading group to the current last group in the order and to count a total number of images included in the specified groups; and a second display control unit configured to cause the display apparatus to display the total number counted by the counting unit.