Soql Null Ordering Patterns

Use when SOQL ORDER BY behavior with NULL values surprises a query — null records sorting before non-null, paginated results inconsistent across pages, NULLS FIRST/LAST clauses needed. Triggers: 'soql nulls first', 'soql null sort order', 'pagination missing records with null fields', 'order by skipping null records', 'consistent ordering with optional fields'. NOT for general SOQL optimization (use data/soql-query-optimization) or for ordering of relationship-traversed fields.

PranavNagrecha 505dbde 7 files · 24.9 KB Updated 15 repo stars

File contents

PranavNagrecha/AwesomeSalesforceSkills/tree/main/skills/apex/soql-null-ordering-patterns commit 505dbde474

Frequently asked questions

npx skillmds add pranavnagrecha/soql-null-ordering-patterns