Close
Er, he said he wanted to "sort images into landscape and portrait". Sorting by width won't help that at all. Explorer is also worthless at it: it takes forever to run, when it should be nearly instantaneous to read that info from an image, it locks up the window hard while it does it, and then it'll randomly start over from scratch.

I'd write a script to print the aspect ratio of the image (as a floating-point value, eg. 1.333 for 4:3 images), and then sort it.