Skip to content

ashok-kuvaraja/how-to-perform-case-insensitive-sorting-in-flutter-datagrid

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom sorting

The datagrid allows to sort columns based on custom logic. For each column, you can provide different sorting criteria by overriding the following methods from DataGridSource,

  • handleSort : This method will be called when you tap the column header and sorting is being applied. You can override this method to provide the entire logic for sorting for columns.
  • compare : You can override this method to compare two objects and return the sorting order based on the criteria.

Case-insensitive sorting

This application shows how to perform custom sorting for the columns based on the case-insensitive by overriding the compare method.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 90.1%
  • Swift 6.9%
  • Kotlin 2.3%
  • Objective-C 0.7%