use std.algorithm, not builtin array sort/reverse

these are now warnings in dmd git HEAD

Resolves: https://github.com/D-Programming-Language/dub/issues/428