avoid builtin sort

dmd warns about this now
Merge pull request #171 from John-Colvin/patch-2

avoid builtin sort