Fix sorting for links

I mistakeningly thought of CouchDB ids like monotonic uuid.  They
don't increase over time, so they aren't useful for the view key
sorting.  Just swapped the id in the view for the created_at value
instead, since that's guaranteed ordering