Instruction Sorting