I don't think the `list(...)` wrapper is not needed here. `values_list` with the `flat=True` param set is already returning a sortable list. Same goes for L43 and L46 below.