optimized sorts, docs
docs