Sort multiple or multi-dimensional arrays