add sort function
Merge branch 'master' of https://github.com/agilejs/2014-10-typesafe