sort attributes in URL