Add first_seen and sort indexes