What is the best way to sort a table like this:
CREATE TABLE category( id INT(10), parent_id INT(10), name VARCHAR(50) ); INSERT INTO category (
SELECT * FROM category ORDER BY name, parent_id ASC