You can use TOP 100 PERCENT in your sql.
string s = ("Select * INTO [" + textbox1.text+ "NDtemp] FROM ( Select TOP 100 PERCENT * from [" + textbox1.text+ "markets] order by 1) as NTemp");
sqlcommand cmd = new sqlcommand (s, con);
if (((cmd.ExecuteNonQuery()) < 0))
{
MessageBox.Show("Records are not copied to temp table.");
}
That is how you can use order by in a subquery.