use lambda-sort, drop old custom code

 the lambda sort function requires -std=c++0x or -std=gnu++0x,
           // first supported in gnu 4.5, but our usage here busts in 4.5.2
           // and may first work in 4.6, not yet available pre-packaged for
           // Ubuntu 11.04.

requires c++0x and later and gcc 4.5+ which is now ok
Revert "use lambda-sort, drop old custom code"

This reverts commit 1083a775e34f728684ee86bb79cdcd033357f7b0.
drop dead code

since 2011, _learnActivity.add(...)
StringUtils: remove unused code toDouble()

was #if 0 ...
Fixed substitution arg order to match format format string in logExceptions decorator. Also fixed it to log any exception, not just those that are based on Exception.
enable --all tests in default run_tests.sh

I fugured errors occur on local machine when using --all switch,
and are not spotted with plain ./run_tests.sh

As a means to figure out the error, as well as for better coverage
I suggest we run with the --all as default
Merge pull request #313 from breznak/cleanup-deadcode

Cleanup deadcode
Incoroprated Scott's PR feedback for changes in logExceptions decorator, fixed bug, and implemented unit tests for it.
Merge branch 'master' into logexception
Merge pull request #315 from vitaly-krugl/logexception

Fixed substitution arg order to match format format string in logExcepti...
use clang staic analyzer scan-build + add scan-build checker cathegory
dead assignment: res, len
SpatialPoolerTest: dead assignment: unused vars
RegionImpl::setParameterArray add check if read succeeded
Cells4: dead assignment candConfidence
move rc check inside for loop
LoggingException: dont call virtual fn from destructor
Revert "use clang staic analyzer scan-build + add scan-build checker cathegory"

This reverts commit 5f663209c8ffae8df78da27b4ab47c91af85abe9.
Merge branch 'master' into analyzer
use NTA_ASSERT in check