Toolserver:~hippietrail/nearbypages.fcgi

Nearby pages returns JSON data which includes a list of terms on the English Wiktionary before and after the given term in the given language using the correct alphabetical order for that language where possible.

There is a JavaScript front end using it on the English Wiktionary. Enable it at wiktionary:WT:PREFS. It's source is at wiktionary:User:Hippietrail/nearbypages.js.

It relies on the locale system of the underlying OS for sorting. Any language that has a UTF-8 locale installed on wolfsbane should get correct sorting.

To find the best locale it currently only checks the language code part of the locale specifier and goes with the first match. This will surely be wrong for some languages which use more than one writing system and may be wrong for some other languages. When no matching locale can be found it uses en-US.UTF-8.