sort entries using php ksort