#JavaScript (ES6), <s> 92 </s> 74 bytes Takes input as `(['gold','silver','bronze'])('rep')`. Returns a Boolean value. <!-- language-all: lang-javascript --> b=>r=>[...b.map((n,i)=>n.repeat(+n&&3-i)).join``].sort()+''==[...r].sort() [Try it online!](https://tio.run/##hZHBjsIgGITv@xR7EoiVlALxRI8@gTfXRHSr1lRoaN1kn75LoZU1abEhfwj5OjMMN/kjm5Mp63al9HfRnUV3FLkR@Q5jfMR3WUOokhKJXGFT1IVs4VItFnRVIoRvulSHwx432rQQLQEQov/NjCfdSatGVwWu9AWCrXm011@APv6fnuEOpCD59IOBPYJ2ohmI9YOsHUUYW0@B7Kk2gOw9Ofjab9aaD7QHOZ8C@VOQOo7TCEeDnuUon3X2CftssZDhMmNGFlckGfWKbhM3pxl5QV9Y8KU2smqmXpYEt2j4UJwtzDXCp5tzghkNb/Y@vK@DzEJknA5L035ZuPsD "JavaScript (Node.js) – Try It Online") ---------- #JavaScript (ES6), 74 bytes Takes input as `(gold, silver, bronze, 'rep')`. Returns a Boolean value. <!-- language-all: lang-javascript --> (g,s,b,r)=>(F=s=>[...s].sort()+0)(r)==F([g,g,g,s,s,b].filter(x=>x).join``) [Try it online!][TIO-jx4raep2] [TIO-jx4raep2]: https://tio.run/##fZFNbsMgEIX3PUV2gEqRMYyywkufoLs0UtzUdhxZpgK3Sk/vDqaLVIbwIyTeNzOP4dp8N/7shs/5ZbIf7dKZhfbc83fumKlobbypDkIIfxTeupmy54JRlExNDz0P0wf6KLphnFtHb6a6MXG1w3Q6seVsJ2/HVoy2p@TVfc2XH8Ke7m87WvAdLs13RBOWEFGRe1Sl1vstoNfoFdCPiDU/jmQJiAwCAFsAVlGhDiqjqxiPuoJkheAAR9ZENBA96FwGWaqQIRzZIqqUd8g/hrxNdTP67Q/ImD1rLjYAILwQUh3A0FLFHj8yF54nk6L820QWRVgILb8 "JavaScript (Node.js) – Try It Online"