KAZOO-2242: Fixed sorting in directories