Don't use built-in .sort in std.string.abbrev()

This also makes it CTFE-able. Yay!

This PR is needed by DMD pull https://github.com/D-Programming-Language/dmd/pull/4028