Logical code order