Better volumne count for sorting. Fixes #418.