Board Thread:Support Requests - Getting Technical/@comment-1038387-20130703080622/@comment-4674838-20130704141858

Also, there is an existing script at w:c:dev:ListFiles that may be worth checking out. It provides a user interface for searching and sorting files on your site, similar to but more flexible than the Special:ListFiles special page.

One of the many things it does is provide a way to sort files by width and height in the output table.