Commit 3722f8a1 authored by Kevin Paxman's avatar Kevin Paxman
Browse files

Fix so sticky items are on the top of the home page block instead of the bottom

parent b2a9a21b
......@@ -328,7 +328,7 @@ function uw_ct_event_block_view($delta = '') {
$events->condition('n.status' , 1, '=');
$events->condition('n.promote', 1, '=');
$events->havingCondition('field_event_date_value2', date('Y-m-d'), '>=');
$events->orderBy('n.sticky');
$events->orderBy('n.sticky', DESC);
$events->orderBy('events.field_event_date_value', 'ASC');
$events->orderBy('n.title');
$events->range(0, 3);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment