2017-03-23 Out of fun and boredom, implemented a function to sort a two- dimensional array by arbitrary columns in PHP: function flexible_sort($arr, $order) { uasort($arr, function($a, $b) use ($order) { $keys = $order; $key = reset($keys); while ($a[$key] == $b[$key]) { $key = next($keys); if ($key === false) { return 0; } } return ($a[$key] < $b[$key]) ? -1 : 1; }); return $arr; } Maybe the code's too clever. I programmed this on Windows in Notepad++ and tested it with XAMPP. Tell you what: I was 70% less productive. It started with the keyboard. These new notebooks all have these flat top keys, where your fingers can't figure out anymore if they sit in the middle or at the edge of the key. I assume that this must be re- lated to the general loss of tactile importance in the world. Then they have touchpads that generate clicks all the time. I might be able to agree that touchpads should click when on touches on it instead of on separate buttons, but these modern touchpads are just level with the area around, thus I always touch them by accident with the ball of my hand. And then the text editor itself (after I suffered from a lot of productivity obstacles already). It is so weak in editing facilities that one could hardly call it an editor. ed(1) for sure offers more. Half of my work was positioning the cursor. I'm probably faster with ed(1) than with Notepad++. Last Windows, where it was a pain to perform the same operation multiple times. Well, I could have been faster in cmd.exe, but it takes extra effort switching into there, when all the rest is graphical. So much different on Unix, where everything is command line. I cannot figure how anyone can be really productive in such a horrible setup (hardware, editor, user interface) as the one I used today. http://marmaro.de/lue/ markus schnalke