Hi Miguel Enriquez,
Both program above is right.
The problem is index of table.
The first program uses index ~1, second one ~0. Both index of table have difference result of sorted so when you get top 10 rows will be difference.
You can use tocde ST05 to check it.
Hope it helpful
Regards,
Hung Nguyen