webui: problem, sort package NEVR by name, add sort package name by count

Please use more descriptive name instead of packages_n (e.g. packages_name) as it's passed to the template.