Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I have a view that filters two content-types (single event, and serial event) by date. The content-types have their own date-field (one with, one without date-repeat option).

The view shows all the "serial events" first, and afterwards the "single events".

How can I change this order?

Is it because I use two different date-fields?

The sort criteria are the following:

  • Format
    Format: Unformatted list | Settings
    Show: Fields | Settings
  • Fields
    Content: single event
    Content: serial event
  • Filter criteria
    Content: Published (Yes) AND Content: Category (exposed) | Settings AND Content: Type (in single event, serial event) OR Date: Date (node) (Content: single event (field_serialevent) OR Content: serial event (field_singleevent) >= now)

I am using Drupal 7.14, with the latest versions development snapshots of the Views, Calendar, and Date API modules.

share|improve this question
What's the sort criteria? – Tyler Durden May 30 '12 at 11:26

1 Answer

up vote 1 down vote accepted

Are you sure you are only have one sort field? It sounds like you are also sorting on "Type". If you are sorting on type, make sure the "Date" is the first in the sort fields. The order of the sort fields, makes the top ones dominant.

share|improve this answer
No, i had just the Date field to sort. But after removing this sort field completely i had the order i wanted... Thanks for explaining the "order"-relationship... – Volker May 30 '12 at 11:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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