def sort_it(dct, k_sk):
for key, sub_key in k_sk:<EOL><INDENT>dct[key] = sorted(dct[key], key=lambda x: x[sub_key])<EOL><DEDENT>return dct<EOL>
:param (('','')) k_v: key, sub_key ie: ('lectures', 'code')