Did a query fix and got the sort working by type,cost,rarity and name