The variable sorting can have only 1 value at a time. So does not make sense to ask on every if statement the value of sorting. If one statement is True, then, the other would be False.
Signed-off-by: nothingbutlucas <69118979+nothingbutlucas@users.noreply.github.com>