Making sure that galleries and files are always in the same order.