I have a series of image,each image has it's own thumbnail(because cropping and scaling not suitable for some of images ),when user upload a image, upload thumbnail too,also I provide a field "class size" ( it is select list with 4 values (180,240,300,360) that indicate thumbnail width). I want create a views that sort thumbnails like below picture (and if rows is more than 11 this sequence will be repeat)
anybody has idea how can I do it?