Multi-criteria orderby
Why stack sorting rules
Most loops need more than one sorting condition. Multi-criteria orderby in Divi Loop Extender lets you define a primary order and add fallback layers so your results remain consistent when multiple items share the same value.
This feature extends Divi 5’s native Loop element sorting by supporting chained order priorities. For example, you can sort by event date first, then alphabetically by title, ensuring a stable and predictable output.
How multi-criteria orderby works
- Loop Extender reads the order of sorting rules you configure in the Loop accordion of the Divi Builder.
- The first rule applies globally across the query results.
- If multiple posts share the same value for that field, the next rule determines their relative order.
- The process continues through all defined rules until every tie is resolved.
- If results still match after all criteria, WordPress defaults (usually post ID) determine final order.