Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
Mark

Is there a way to reset the Sorting for a field?

I have a date field created in ACF. The way the date is being stored is YYMMDD so sorting should be capable using just the numeric value of what is getting entered in. Is there a way to specify this for this field as when adding sorting to this acf date field it doesnt sort properly.

9 years, 6 months ago
Tobias Schutter
Developer

Unfortunately this is not possible yet. We would need to implement a filter for this which will let you switch between sorting ‘numeric’ or ‘regular’. For details see the phpdoc sort: http://php.net/manual/en/function.sort.php.

Currently it’s based on field type, and date is sorted ‘regular’.

For the next release I will add a developer filter cac/addon/sortable/sort_flag.

This will let you switch to ‘numeric’ based on column type.

9 years, 6 months ago
Tobias Schutter
Developer

I have been working on improving the sorting for ACF field types. In the next release I will set the date field to ‘NUMERIC’ by default. This will sort the date field correctly!

Cheers,

Tobias

9 years, 6 months ago

You must be logged in to reply to this topic.