merged sort and attr in to arr widget