     constructor: (element, opts) ->
       @table = $(element)
       @search = $('input#q')
-      
-      @options = $.extend {}, opts
-      @options.url ?= @table.attr("data-url") ? "/documents"
-      @options.sort ?= @table.attr("data-sort")
-      @options.order ?= @table.attr("data-order")
-
-      @sort = $.params("sort") ? @options.sort
-      @order = $.params("order") ? @options.order
+      @url ?= @table.attr("data-url") ? "/documents.js"
       @query = ""
+      @sort = null
+      @order = null
       
       @table.bind "refresh", @get
       @search.bind "keyup", @setQuery

      @table.fadeTo('fast', 1)
      
    get: (url) =>
      @wait()
      $.ajax
        url: url


    activate: () =>
      @table.refresher()
      @sort ?= @table.attr("data-sort")
      @order ?= @table.attr("data-order")
      @table.find('a.sorter, .pagination a').click (e) =>
        e.preventDefault() if e
        if url = $(e.target).attr('href')
