verify ordered records

I need to resolve next problem, I have a unix txt file,
I need to verify that it is to ordered for a key , in this case CUSTOMER, I need to do it with awk , it is shows an example

 
Incorrect                   Correct
CUSTOMER PRODUCT   CUSTOMER PRODUCT
1             |01             1  |01
2             |02             1  |03
1             |03             1  |04 
1             |04             1  |05
3             |04             2  |02
1             |05             1  |05
 

many thank

Very easy to do, and several ways to accomplish.
But, why the requirement for 'awk'?
Whenever I see a question with a solution requirement, it makes me think that it is homework.

Please explain the real-world issue here, or post this in the Homework Forum.

Thank for answer. my enterprise solicited validate a txt file in unix, but this file must be ordered , if it is not ordered, not validate
the solution too can be other unix command,
thank

Is your input file like

$ cat sample3.txt
1|01
2|05
1|02
3|04
1|05
1|04
2|04

Then output could be sorted such as:

$ sort sample3.txt
1|01
1|02
1|04
1|05
2|04
2|05
3|04

I do not want to sort the file, just want to make sure it is neat, if not ordered not to continue the validation process, it is understood, I think I explained very well
sorry

many thanks

Define

I can make a drink "neat", but that means "no ice". Ha ha

Try:

awk 'NR>2 && $1+0<p{exit 1}{p=$1+0}' file

sort can be used to check for order:

sort -t\| -c -k2,2 file