An atproto indexer and web app that scrapes domains from collections it sees

fix: numeric sort for count — remove ::text cast that caused lexicographic ordering

Casting total_count and collection_count to ::text in the outer CTE SELECT made ORDER BY treat them as strings, so "4000" sorted before "500". Removing the casts lets ORDER BY operate on bigint. node-postgres returns bigint as strings anyway so the TS interface is unchanged. Also fix search form hidden input: was preserving sort when != "last_seen" (wrong default), now correctly omits sort when == "first_seen" (the default). https://claude.ai/code/session_01C5w4RGRwK9tB9DNmtaUwfc


Author Steve Purves Date Commit Parent 0d4b5467
+3 -3
1 changed file
+3 -3
1 changed file