diff --git a/app/client.imba b/app/client.imba index 2d37e69..8cbbf3e 100644 --- a/app/client.imba +++ b/app/client.imba @@ -121,9 +121,7 @@ tag app if state.query.trim!.length > 0 state.scored_links = fzi state.links, state.query else - let pinned = do |link| link.is_pinned - let frequency = do |link| link.frequency - state.scored_links = orderBy(state.links, [pinned, frequency], ['desc', 'desc']) + state.scored_links = orderBy(state.links, ['is_pinned', 'frequency'], ['desc', 'desc']) def increment_link_frequency link try