i have table with status column
CREATE TABLE movies
(
id int NOT NULL AUTO_INCREMENT,
title varchar(100) NOT NULL default '',
status int NOT NULL
);
status could be between 1 and 4
and i want to sort the result by status
i can easily sort my query by status asc and desc and get the rows with 1 and 4 as value on the top
$sql = "SELECT * FROM tbl order by `status` ASC";
but how can i get 2 and 3 on the top of result ?
1 Answer