Skip to main content
Removing ex aequo.
Source Link
Jeroen
  • 2.5k
  • 4
  • 35
  • 65

My articles have a 'Ranking' field, which contains an integer. I have a view that sorts articles depending on this value: the article with the highest score is a the top. Now, in casewhen two articles have the same amount of an ex aequopoints, I'd like the most recently posted article to get the highest ranking.

For example. Let's say I have 3 articles:

  • 'Article A' (5 points - posted on 30/12)
  • 'Article B' (5 points - posted on 21/12)
  • 'Article C' (6 points - posted on 20/12).

The ranking should be:

  1. 'Article C'
  2. 'Article A'
  3. 'Article B'

How can I do this?

My articles have a 'Ranking' field, which contains an integer. I have a view that sorts articles depending on this value: the article with the highest score is a the top. Now, in case of an ex aequo, I'd like the most recently posted article to get the highest ranking.

For example. Let's say I have 3 articles:

  • 'Article A' (5 points - posted on 30/12)
  • 'Article B' (5 points - posted on 21/12)
  • 'Article C' (6 points - posted on 20/12).

The ranking should be:

  1. 'Article C'
  2. 'Article A'
  3. 'Article B'

How can I do this?

My articles have a 'Ranking' field, which contains an integer. I have a view that sorts articles depending on this value: the article with the highest score is a the top. Now, when two articles have the same amount of points, I'd like the most recently posted article to get the highest ranking.

For example. Let's say I have 3 articles:

  • 'Article A' (5 points - posted on 30/12)
  • 'Article B' (5 points - posted on 21/12)
  • 'Article C' (6 points - posted on 20/12).

The ranking should be:

  1. 'Article C'
  2. 'Article A'
  3. 'Article B'

How can I do this?

Source Link
Jeroen
  • 2.5k
  • 4
  • 35
  • 65

Extra sorting criterium in case of ex aequo with Views

My articles have a 'Ranking' field, which contains an integer. I have a view that sorts articles depending on this value: the article with the highest score is a the top. Now, in case of an ex aequo, I'd like the most recently posted article to get the highest ranking.

For example. Let's say I have 3 articles:

  • 'Article A' (5 points - posted on 30/12)
  • 'Article B' (5 points - posted on 21/12)
  • 'Article C' (6 points - posted on 20/12).

The ranking should be:

  1. 'Article C'
  2. 'Article A'
  3. 'Article B'

How can I do this?