Example for sorting attributes