FIX ksort on classes