                 #td.type = "cover"
                 covers.push td
             @helper.update_array {target: @covers, data: covers }
-            @helper.sort_array2(@covers, "price", "quantity", !inverted)
+            @helper.sort_array(@covers, "price", "quantity", !inverted)
 
     pull_orders: (market, inverted, account_name) ->
         orders = []

                can_remove: (o) ->
                    #!(o.status == "unconfirmed" or (o.status == "pending" and !o.expired()))
                    !(o.status == "unconfirmed" or (o.status == "pending" and !o.expired()))
            @helper.sort_array(@orders, "price", false)
            if magic_unicorn?
                magic_unicorn.log_message("in MarketService.pull_orders - received orders: #{results.length}, orders shown: #{@orders.length}")


                self.market.lowest_ask = market.lowest_ask = self.lowest_ask if self.lowest_ask != Number.MAX_VALUE
                self.market.highest_bid = market.highest_bid = self.highest_bid

                self.helper.sort_array(self.asks, "price", "quantity", false)
                self.helper.sort_array(self.bids, "price", "quantity", true)

                if @counter % 5 == 0 and self.market.avg_price_1h and self.market.avg_price_1h > 0.0

