$rez = mysql_query("SELECT * from zaidejai ORDER BY Kof ASC"); $rez = mysql_query("SELECT * from zaidejai ORDER BY Kof DESC");