Attemps to fix sortying associated records. #5