Open morlandi opened 3 years ago
Use case: you have a list of addresses like:
Suppose that an hidden "normalized_number" has been added to support "natural sorting":
In this case, you wish to show (street + number) but sort on (street, normalized_number).
This might be solved with the optional "sort_field" column attribute, i.e.:
'sort_field': 'street,normalized_number'
then refactoring sort_queryset() accordingly
sort_queryset()
Use case: you have a list of addresses like:
Suppose that an hidden "normalized_number" has been added to support "natural sorting":
In this case, you wish to show (street + number) but sort on (street, normalized_number).
This might be solved with the optional "sort_field" column attribute, i.e.:
then refactoring
sort_queryset()
accordingly