It works, but we really need a way to set the sorting as the default for a category. Most visitors are not going to know enough to click on the Filter tab to change the sort order and direction (we need sorting by title, ascending).
Thanks for this, it's still working with the latest MG 2.2.1 and I had requests for this function.
I think XF should include this in their releases as well as default sort order options in individual categories with the Media Gallery and the Resource Manager.