Credits: plusmouse from
https://discord.gg/cXFrth
Code:
local query = {
searchString = "",
sorts = { { sortOrder=0, reverseSort=false } },
itemClassFilters = { { classID = LE_ITEM_CLASS_BATTLEPET } },
filters = {}
}
C_AuctionHouse.SendBrowseQuery(query)
sorts is a list of the sorting values. Notice the type signature in the docs AuctionHouseSortType[] and the same for itemClassFilters being AuctionHouseItemClassFilter[]
https://www.townlong-yak.com/framexm...endBrowseQuery