$def with (component_times) $for component in sorted(component_times.items(), key=lambda x: x[1]):
Component Time %
$component[0] $("%.2f" % component[1]) $("%.2f" % (component[1] / component_times['TotalTime'] * 100.))