     return
 
   PaginationSetup = (attributes) ->
-    @repeatString = "item in #{attributes.pagination}.list | limitTo:fromPage() | limitTo:toPage() | orderBy:predicate:descending"
+
+    @repeatString = "item in #{attributes.pagination}.list #{orderByExpression} #{limitToExpression}"
 
     @compile = (element, attributes, transclude) ->
       tbody = setupTr element, @repeatString

    scope: true
    compile: (element, attributes, transclude) ->
      setup = createSetup attributes
      constructHeader(element)
      setup.compile(element, attributes, transclude)
      {
        post: ($scope, $element, $attributes) ->

        tds = element.find("td")
        tdString = ""
        for td in tds
          tdString += "<td>&nbsp;</td>"

        fillerTr = angular.element("<tr>#{tdString}</tr>")
        fillerTr.attr("ng-repeat", "item in #{attributes.pagination}.getFillerArray() ")
