Not signed in (Sign In)
  1.  
    Hi!

    First of all thank you for spending your time on making such a wonderful addon! What a great help for a trader.

    I was customizing the output a bit and tried also to sort the bidbroker results by profit. This makes more sense to me than sorting by time left. (Obviously sorting by both would be the best solution). I tried this:


    -- builds the list of auctions that can be bought and resold for profit
    function doBidBroker(minProfit)
    if not minProfit or minProfit == "" then minProfit = MIN_PROFIT_MARGIN else minProfit = tonumber(minProfit) * 100 end
    local output = string.format(AUCT_FRMT_BIDBROKER_HEADER, TT_GetTextGSC(minProfit));
    Auctioneer_ChatPrint(output);

    local bidWorthyAuctions = querySnapshot(bidBrokerFilter, minProfit);

    -- sort by time left
    -- table.sort(bidWorthyAuctions, function(a, b) return (a.timeLeft < b.timeLeft) end);
    -- sort by profit
    table.sort(bidWorthyAuctions, profitComparisonSort);


    But it doesn't seem to work.

    Would you give me a hint?

    Take good care,

    Red
World of Warcraft™ and Blizzard Entertainment™ are trademarks or registered trademarks of Blizzard Entertainment, Inc. in the U.S. and/or other countries.