Image size sort

I have about 6,000 images in one directory. For purposes of this question let's say that all of them are 1024 X 768 pixels. The images are either oriented with the 1064 pixels vertical, or horizontal. Is there any way to sort the files based on their orientation so that I can put all of the 1024 wide files in one directory, and all of the 1024 high files in another?

Thanks.

Bruce

Add, and then sort by, the image width column.

Woops! I figured it out myself. You just add the Height column and sort by that. Easy! What a great program!

Bruce