block sorting and jump elimination