Fix bug 886488: Add random sort for gallery page.

Once this is merged we'll have to bug IT to create a cronjob to run this command. It should run once an hour.