Sorting attributes and adding resource updating