 
       return
     )
-    return collection
+    collection
 
   

    if params.order
      all_complied = @_order( all_complied, params.order )

    return all_complied

  @_sortBy: ( collection, attribute ) ->
    _.sortBy( collection, (item) ->
      return '' if item[ attribute ] is undefined || item[ attribute ] is null
      return item[ attribute ].toLowerCase()
    )

  @_order: ( collection, attribute ) ->
    if attribute is 'DESC'
      return collection.reverse()
    return collection

  @_filter: ( collection, filter ) ->
    for key, value of filter

        if item[ key ] is value
          return item
      )
    collection

  @_filterExtended: ( collection, filters ) ->
    collection = _.filter( collection, (item) ->
