Added sort by attribute

use sort with attribute, as "sort all objects by color"
attribute is not optional for now