A man has been given a suspended sentence at Derry Magistrate's Court charged with disorderly behavior.