resolves #164 sort by attribute max