ksort on the server array