jQuery Tiles Gallery

I'm trying to work on getting nice image gallery but it seems that on each load the image order changes. Is there any way to stop this and keep set order or something? This is the default and only one behavior. The gallery finds each time the tile that best fit the images, so the order is not considered.

The script doesn't work and the console says: This is probably caused by a double inclusion of jQuery. View the source of you page and look for these strings: jquery.js and/or jquery.min.js if you find it twice (or more) then another plugin, or your theme, is not includi ...