revert locale sorting since it gives problems with gcc 3.x (see bug 2738)