fixed bug where outside locales parameter would get modified
Merge pull request #3 from codegourmet/topic/locale_sorting_bug

fixed bug where outside locales parameter would get modified