I'm not sure why:
Create table RealTable( cust_num, line_num, identity_field)
insert into realtable
select cust_num, line_num
from old_table
order by cust_num, line_num
won't give you exactly what you want. The data going into the new table would be in exactly the order you want it to be, and...