The need to increase data transfer rates constitutes a key challenge in modern information-driven societies. Taking advantage of the transverse spatial modes of light to encode more information is a promising avenue for both classical and quantum photonics. However, to ease access to the encoded information, it is essential to be able to sort spatial modes into different output channels. Here, we introduce a novel way to customize the sorting of arbitrary spatial light modes. Our method relies on the high degree of control over random scattering processes by preshaping of the phase structure of the incident light. We demonstrate experimentally that various sets of modes, irrespective of their specific modal structure, can be transformed to any output channel arrangement. Thus, our method enables full access to all of the information encoded in the transverse structure of the field, for example, azimuthal and radial modes. We also demonstrate that coherence is retained in this complex mode transformation, which opens up applications in quantum and classical information science.Transverse spatial light modes have attracted a much attention because of their special properties and the subsequent broad range of applications [1, 2]. One particularly promising approach uses spatial modes of light to increase data rates in optical communication schemes. By not only harnessing the polarization or frequency of light but also the transverse spatial degree of freedom, a dramatic improvement in the multiplexing of information can be achieved [3,4]. In quantum physics spatial light modes are successfully utilized as laboratory realizations of high-dimensional quantum states [5,6], which are advantageous for quantum secure communication schemes [7], quantum simulation tasks [8] and foundational investigations [9]. However, to fully take advantage of the potential that spatial light modes offer, technologies to manipulate and measure them are essential. Although mature technologies to generate complex spatial modes are available today [10], complex transformations of such modes are still rare and challenging to implement [11][12][13]. The transformation from a given spatial mode to a specific position in a transverse plane, that is, mode sorting or demultiplexing, is an especially interesting transformation in quantum [7,14,15] and classical information schemes [4,16]. A specific example, namely a sorter for modes that differ by their azimuthal structure, has recently been established [17,18] and successfully implemented [4,7,14,15].Here we show that sorting of this type can be implemented through the control of strong scattering processes, a topic that has recently attracted much attention [19]. Such control can allow one to realize complex modulation tasks that have thus far been impossible. Earlier experiments presage the enormous potential that the control over random scattering processes can offer, by e.g. showing enhanced transmission and focusing through opaque, scattering media in the spatial [20][21][22] and temporal d...