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

Nulls Last in Picklist field

I am not able to use 'NULLS LAST' while sorting the data by a picklist field.
I am using SOQL of the form

Opportunity[] op=[select <picklist field> from opportunity where name!=null order by <picklist field>  NULLS LAST];


but the SOQL doesnot produce a result where nulls be placed at last.




Please suggest a resoultion to the issue.