added sorting of images

The images are now sorted by their filename.
Merge pull request #125 from XenGi/patch-1

Sort images by filename in Gallery plugin
Fixed tipue_search failing with pages due to no category.
Merge pull request #126 from rmorehead/tipue_search_no_cat_fix

Fix tipue_search failing with pages due to no category