Add re-sorting functionality based on last sort vars