Made the ksort work with different php version. In php 5.4.15 the outer $ascendent could not be accessed with the old code. Fixed rrmdir call.
Made the ksort work with different php version. In php 5.4.15 the outer $ascendent could not be accessed with the old code.