How is a specific order specified if it is not at first known?

 
For instance to reference an order in code and there are more than one order how is the order referenced?
 
Magic number, ticket number, type or whatever matches the criteria that you are looking for.
Reason: