fixes and upgrades for sort dialog checking