Post History
JavaScript (Node.js), 52 bytes (A,...c)=>A.sort((a,b)=>c.map(z=>z(a,b)).find(x=>x)) Try it online! A golf of the reference code. If we can assume there will be no ties, 47 is po...
Answer
#1: Initial revision
# [JavaScript (Node.js)], 52 bytes <!-- language-all: lang-javascript --> (A,...c)=>A.sort((a,b)=>c.map(z=>z(a,b)).find(x=>x)) [Try it online!][TIO-kt23rbd9] [JavaScript (Node.js)]: https://nodejs.org [TIO-kt23rbd9]: https://tio.run/##dVE7b8IwEN79K7zVrsDQtWpSkW5IVYcMlUqpcjGGGDl2ZFuF8OfTvEyEUCff97jvTr4j/ILjVlZ@rs1ONPuoIasZY4zTKF4xZ6wnBGZ5izgroSKXKL70BGV7qXfkHMVnShslPOZWgBdp24IjfMBRjHtjVxwIUNw9LXzFT/h5YF4CM@@oJeJGO6MEU@ZA9gRlb4WVzksNeG2KVtIo9eIEdneHPwvpxRV9PCRWwqSmpfQFSqRSY9m1XzPWUAo3CikoVV@Vaf67qIV1AxFASB9hHx8mfwEvwNZj6tCWWHOalOBc5bkIvqCNif2WQ9ew163rZsvhBzLmKiV99q2zGZru0V@pPZ/nBVlsfvD2cUE3yy3914PZ6ECIsqORukukzR8 "JavaScript (Node.js) – Try It Online" A golf of the reference code. If we can assume there will be no ties, [47](https://tio.run/##dVE7b8MgEN75FWyFKiHpWtWunG6Rqg4eKjVN5TMhNhGBCFDz@POubUysKOoC9z3uuxPs4Bcct/Lgp9psRLNNGpJNGGOcJmnGnLGeEJiULeJsK/WGXJL00jM0nI0SHnMrwIu8deMEVzhJcS92RUWA4u5q4St@ws@BeYnMtKPmiBvtjBJMmYpsCSreaiudlxrw0tStpFHuxRHs5g5/1tKLK/p4WFgJo5rvpa/RQio1lF37NWMJe@EGIQelzldlnP8uzsK6QEQQ0wfYx8fJX8BrsOchNbQtrDmOSnRmZSmiL2pDYr9l6Ap73bputgwvUDB3UNIX37qYoPE/yClJT2wPntdktvrB68cZXc3X9F8PZoMDIcp2RuoukTZ/) is possible in a rather neat way.