In SOQL we are using ORDER BY a auto number field in a parent object. But the order is not proper.
For Ascending order we are getting the following output
For Descending order we are getting the following output
Why we are getting like this ? How to solve this ?