fixed the problem with locales, instituted temporary equal-probability analysis sorting method