0

In my view I filtered for date "greater than now" and in the settings I put granularity "day".

I can see the 3 events correctly, but they are grouped by "month" and not in chronological order though.

Is there any option I can't find by myself to view the events in chronological order?

I sorted by date ASC

This is the export display: https://kopy.io/DRwkf

This is the export of all the view: https://kopy.io/KJsM0

view block

filter criteria

extra settings

sort criteria

3
  • Can you export the view and post it here? Commented Sep 18, 2018 at 6:18
  • I add the exports :) Commented Sep 18, 2018 at 6:30
  • I updated my answer, please check Commented Sep 18, 2018 at 7:26

1 Answer 1

0

In your views sort settings, make sure your Date sort is the first one, because it seems that there is another sort by entity title applied first


UPDATE

After checking the view export:

/* Sort criterion: Content: Post date */
$handler->display->display_options['sorts']['created']['id'] = 'created';
$handler->display->display_options['sorts']['created']['table'] = 'node';
$handler->display->display_options['sorts']['created']['field'] = 'created';
$handler->display->display_options['sorts']['created']['granularity'] = 'month';

You are sorting the results using "Post Date" of the node, not the date field, you should remove this and add the date field instead

7
  • I have only one sort :( Commented Sep 17, 2018 at 9:27
  • Is this Drupal 7 or 8? Commented Sep 17, 2018 at 9:28
  • Drupal 7 installed Commented Sep 17, 2018 at 14:48
  • If you only have one Sort criteria (node title), you can add a new Sort criteria Date - start date and rearrange them so that the Date one comes first, or you can even remove the Title sort. Filters and Sorting are separate things, Filter criteria doesn't affect the Sort criteria.
    – prkos
    Commented Sep 18, 2018 at 1:05
  • As in the pic, I added only one sort criteria by date ASC Commented Sep 18, 2018 at 6:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.