FIX: search history is now sorted by the timestamp