Calculations working; sorting does not update