Consider urgent flag when sorting programmes