Assuming image sequence number is passed as a parameter you can use like this
...
ORDER BY CASE WHEN SeqNo=@PassedSeqNo THEN 1 ELSE 2 END ASC
------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/