Something went wrong. Try again.
An atproto indexer and web app that scrapes domains from collections it sees
Something went wrong. Try again.
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 (Apr 11, 2026, 3:57 PM UTC) Commit
Copy SHA
Parent 0d4b5467 0d4b546757b8be0f55d5c36baf049e49c20b530f