Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: sort Shop tab by most recently listed first

Promotes new third-party seller listings to the top of the buy page.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+2 -2
+2 -2
system/public/kidlisp.com/buy.html
··· 975 975 if (currentTab === 'albums') return renderAlbumsGrid(); 976 976 977 977 grid.classList.remove('sold-grid', 'albums-grid'); 978 - // Sort by price ascending by default 979 - const sorted = [...listings].sort((a, b) => Number(a.price_xtz) - Number(b.price_xtz) || Number(a.token?.token_id || 0) - Number(b.token?.token_id || 0)); 978 + // Sort by most recently listed first 979 + const sorted = [...listings].sort((a, b) => new Date(b.timestamp) - new Date(a.timestamp)); 980 980 if (!sorted.length) { 981 981 grid.innerHTML = '<div class="loading">No active listings</div>'; 982 982 return;