SELECT DISTINCT cat_id, cat_name, cat_parent_id FROM categories WHERE (cat_parent_id=0) ORDER BY BINARY cat_name