Add a column enum('n','y') called sticky. Do a select from the DB for all listings where sticky = 'y' and loop those. Then run a query to pull the rest of the listings.
(There are other ways I am sure, but off the cuff, this ishow I would probably pursue it.)