New South Wales Attorney-General Gabrielle Upton has flagged a law change to make it a criminal offence to refuse to stand up in court.

It comes after a man accused of attempted murder repeatedly refused to stand in a Sydney court.

Milad bin Ahmad-Shah al-Ahmadzai is back in Parramatta District Court today, accused of shooting a man outside a sex club in 2013.

He has pleaded not guilty to six charges, including shooting with intent to murder.

Ms Upton said she would introduce legislation in the new year to criminalise disrespectful behaviour in court.

"Not standing in court is simply unacceptable," Ms Upton said in a statement.

"Current laws do not reflect my concerns nor the widespread community's concern about the level of respect that must be shown to the judiciary, court officers and the wider justice system by people who appear in court."

Yesterday, the court was shown surveillance footage showing two masked men attacking the victim outside Arrows sex club at Rydalmere in May, 2013.

The trial continues.