added comments to sorts