3.1 bug fixes

git-svn-id: http://sunny.svnrepository.com/svn/sunny-side-up-general/imagegallery_basic/trunk@5441 7b40dde9-fc51-43d4-b609-63a66f0a0cee
ADD sorter

git-svn-id: http://sunny.svnrepository.com/svn/sunny-side-up-general/imagegallery_basic/trunk@5445 7b40dde9-fc51-43d4-b609-63a66f0a0cee