Gallery sort order and template files modifications.

Website template files modification and gallery item sort order bug
fixes.