order and set on attributes