Can I download a user database and sort by time viewed?

Discourse doesn’t collect data from anonymous (not logged in) users in a granular way but you can plug in your Google Analytics UA code and track their movement through your site.