Skip to content

Commit

Permalink
re-apply default sort after a scan
Browse files Browse the repository at this point in the history
  • Loading branch information
tekkub committed Oct 26, 2016
1 parent 6e9ea64 commit 58f2e76
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sort.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@

local myname, ns = ...


-- Default to sort by cheapest unit price
SortAuctionSetSort("list", "unitprice")

-- Restore after a scan
ns.RegisterCallback({}, "SCAN_COMPLETE", function()
SortAuctionSetSort("list", "unitprice")
end)

0 comments on commit 58f2e76

Please sign in to comment.