This script makes sorting images based on their width or height easier. You don't have to specify your images width or height. It automatically detect them and sort according to width or height in an ascending or descending order. Very little php knowledge is required to use this script.