```coffeescript
#
# Collection for a group of results in a connection search
#

UserBlocks = require("./user_blocks.coffee")
sd = require("sharify").data
_ = require 'underscore'
Block = require("../models/block.coffee")
params = require 'query-params'

module.exports = class ConnectionBlocks extends UserBlocks
  defaultOptions:
    page: 1
    per: 20

  url: -> "#{sd.API_URL}/search/connection?#{params.encode(@options)}"

  initialize: (models, options) ->
    super
    @slug = options.user_slug

  comparator: (model) ->
    return 1 if model.get('marked')
    return model.get('score')```

Clean up and annotate collection
user
```coffeescript
# Collection for a group of results in a connection search

qs = require 'qs'
{ API_URL } = require('sharify').data
UserBlocks = require './user_blocks.coffee'

module.exports = class ConnectionBlocks extends UserBlocks
  defaultOptions:
    page: 1
    per: 20

  url: ->
    "#{sd.API_URL}/search/connection?#{qs.stringify @options}"

  initialize: (models, options) ->
    super
    @slug = options.user_slug

  comparator: (model) ->
    # For original connect component
    # TODO: Remove this once component is retired
    if model.get 'marked'
      1

    # When searched
    else
      model.get 'score'
```
assistant