print into an html table. I already figured out how to do it but i would like to generate the html table sorted on values in desc order. I mean, i have a function which creates the html table from each row in the dict, so how can i pass an already sorted dict to the function ? AKA how to sort int values on a dict in desc order?
your_sorted_dict = sorted(your_dictionary, key = lambda x: your_dictionary[x], reverse = True)
Обсуждают сегодня