Sort by column without managing errors