Let's say I wanted to have a view of content exposed to the front page. This view is first sorted by stickyness and then by publish date (descending). If I expose only the publish date sort then views produces a query that sorts by publish date and then by stickyness (in general: exposed sorts are put before other non-exposed sorts - ignoring sort weight).
I think this is counterintuitive. The provided patch fixes this.

Comments

slashrsm’s picture

I agree. Interested in this beeing commited.

p4trizio’s picture

I agree too

slashrsm’s picture

Status: Needs review » Reviewed & tested by the community
dawehner’s picture

@slashrsm

Could you please write at least some words why you made this RTBC?

In general the code change make sense, but perhaps some inline comment would be cool to not make the same mistake again. A simpletest would be the best thing, but noone writes them.

slashrsm’s picture

Sorry.... I already reviewed this in #1. Since p4trizio agreed with me in #2 I changed status to RTBC.

p4trizio’s picture

It works in the way I expected :-)

Thanks

paranojik’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new1.85 KB

Added comment and reapplied. I'll see if I can manage to also write a test.

slashrsm’s picture

This looks ok.

dawehner’s picture

Version: 7.x-3.x-dev » 6.x-3.x-dev
Status: Needs review » Patch (to be ported)

Patch looks really fine, so commited to 7.x-3.x.

This seems to be worth to be added to 6.x-3.x as well.

timmerk’s picture

Thanks for the patch! I'll post an updated patch for the latest dev code tomorrow.

timmerk’s picture

Here's a patch for the latest 6.x-3.x code.

chris matthews’s picture

Issue summary: View changes
Status: Patch (to be ported) » Closed (outdated)

The Drupal 6 branch is no longer supported, please check with the D6LTS project if you need further support. For more information as to why this issue was closed, please see issue #3030347: Plan to clean process issue queue