changing toptags command to calculate for all sorting functions