# get df-desc-slice to sort on
elif sort_on_stat:
f = self._get_descriptive_via_stack(col_key, sort_on)
# get df-net-slice to sort on
elif sort_on_net:
f = self._get_net_via_stack(col_key, sort_on)
# get df-freq-slice to sort on
else:
f = self._get_frequency_via_stack(col_key, axis, self._sort_weight)
In this block: