Performance optimization: only perform sort once when adding multiple items via addAll

This can be a huge performance gain for large collections that use a comparator.