You can use this code to Page Header Injection
<!-- @tuanphan - reverse summary order -->
<script>
document.addEventListener('DOMContentLoaded', function() {
const summaryList = document.querySelector('.summary-item-list.sqs-gallery');
if (summaryList) {
const items = Array.from(summaryList.querySelectorAll('.summary-item'));
items.reverse();
items.forEach(item => item.remove());
items.forEach(item => summaryList.appendChild(item));
if (window.Squarespace && window.Squarespace.FrontEnd) {
setTimeout(function() {
window.dispatchEvent(new Event('resize'));
}, 100);
}
}
});
</script>
