Don't use built-in .sort in std.base64 and other places

Needed by: https://github.com/D-Programming-Language/dmd/pull/4028