Post History
Ruby, 25 bytes Credits goes to @Shaggy and his JavaScript solution. ->a,l{l.map{a.sort! &_1}} Try this online! The other solution which not mutate original array
Answer
#1: Initial revision
# [Ruby](https://www.ruby-lang.org/), 25 bytes Credits goes to [@Shaggy](https://codegolf.codidact.com/users/53588) and his JavaScript solution. ```ruby ->a,l{l.map{a.sort! &_1}} ``` **[Try this online!](https://ato.pxeger.com/run?1=hZM_TsMwFMYHNp_CZKBLWpF2YSCVKFslxNABiRBVdkkUIzepHFeNE-UkLJWAQ3AVTkNix7FbirrEef5-74--J79_si0W-4_Yf_na8nh48z2cIpdWdLRGmwqN8ozxS3i19Opa6T8XforWUQ59GDj3CSM5JymC8yxJ8yx1XGfBox1irydunhLCIyt-HMwYQTaxWBOeNPGMUNoHbSGr2lx21-ICUSos1Uz0EImI5frKhLpXfyGbmVme0SpBTPQdVPqMZTtbNfwdxpGhtd5Xl9PrbDXtMXs0fedTCAAWy5iwnDdet1vBFWwWsqGEB9chvPWnEJuwbmmKTsHeIey1MIgDuUYXBrqLC7sKYQg2UKoAZPgtWnG5bQBh5RSOP_VcRzTH2HXK9qjdXpkcKBNLGf-rdNW8czne35yzSltN-Vj0tqBgUAw6R9SvtE7YgDCA0EBpA6UBSgnEQeeUMrSUZgr5LRo_G0M7Xb2i_V6dvw)** The other solution which not mutate original array