katina.php now sorting properly