Added sort by in search. Export buttons for diff formats