Fix "use up capacity" in Appender
Merge pull request #2046 from monarchdodra/appenderUseUp

Fix "use up capacity" in Appender
safe pure nothrow sort and sum