Sorting
Overview
Understanding Sorting in Foundsets
// Sort on column1 ascending, then column2 descending
'column1 asc, column2 desc'foundset.sort('last_name asc, first_name asc');
// Resulting order: sorted by last name, then by first name when last names are identicalAvailable Data Provider Types
Sorting Methods
Using the sort Method
Setting initialSort in the Form
Setting Intial Sort in Relation Properties for Related Foundsets
Advanced Sorting Techniques
Combining Multiple Sorting Criteria
Using Query Builder for Sorting
Using Custom Sort Functions
Performance Considerations
Conclusion
Last updated
Was this helpful?