sortscan fix