There are 57 of total and what I want is to display them in reverse order like 57-1 instead of 1-57. I tried sort function with desc argument-which is what I need- but nothing happening and not even any error and I tried here but couldn’t figure out what to do with the map[captian: url: "1_zkrzpf.jpg"
I also don’t understand your answer. Screenshots are not enough and the quoted code is not clear about what you are doing since it shows a call to the partial figure.html.
You need to share the project and be descriptive as mentioned in the Requesting Help guidelines.
Yes, problem isn’t solved yet. I thought the screenshot will help better. I asked for how to get images in reverse order? Like the first image in the .Site.Data.zweites should be displayed as last image in the gallery. The method you guys told me is not doing it properly like if you check the screenshots you’ll see the first image in screenshot 1 is the 3rd in row 2 from the bottom but it’d be the last one and the last one should be coming at position 1.
Suppose there are totally the 4 images in order:
1.jpg
2.jpg
3.jpg
4.jpg
and I simply want them to be ordered like (on the basis of their position index not name)
4.jpg
3.jpg
2.jpg
1.jpg
For example, in the similar fashion as the file manager do like in descendant order.
I hope, now you’ll understand me better.
Thank you for the help!