Moved measure sorting into lib/ext/measure
Refactored places where mes.sort was used with a block
Merge pull request #74 from okeefm/measure_sorting

Measure sorting