Kategorileri çektiğin SQL sorgusunun sonuna ORDER BY kategori_adi ASC ekleyip dener misin?