function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Order By seems backward when sorting by StageName!

Is anyone else having this issue where the ORDER BY StageName actually reports back Z to A?  If I do ORDER BY StageName DESC then it sorts A to Z.  This is backward!  It seems consistant but when reading the code you would expect a different result than what actually is returned.
Best Answer chosen by Eager-2-Learn
Seems like it gets sorted by the associated probability percentage, rather than the stagename. i.e., 10% probabily stage name woule come earlier than 20% probability stagename. 

ps: If this resolves your query, please mark this post as resolved so that others can benefit from the solved questions.