sorting on the attributes page. closes #16