Fix percentile calculation - partly wrong values, and sometimes warnings regarding array_flip
Fix percentile calculation - partly wrong values, and sometimes warnings regarding array_flip

tlamy/WowAuctionHouse,tlamy/WowAuctionHouse,tlamy/WowAuctionHouse