optimizes repetative sorting

I'm fine with that. we could also set the attribute on construction and just check it. I was trying to be minimally invasive.