stefanoverna/activeadmin-globalize3 — pull request #11 by codingluke (2013-05-13 11:51:53+00:00)
Title: Add options auto_sort to form_builder_extension "translated_inputs"

Adds an option auto_sort, so that it is possible to sort the language tabs manually by entering the locales in a specific way into I18n.avaliable_locales. Sometimes the default language must not be the first in the alphabet.

default:
auto_sort => true

```ruby
# Acts like it does now
# I18n.available_locals = [:en, :de]
# German comes before English, cause its sorted alphabedically by locale-code
f.translated_inputs "Translated fields" do |t|
...
end

# Locales are sort bei the order of the entries
# I18n.available_locals = [:en, :de]
# Englisch tab is rendered before German
f.translated_inputs "Translated fields", auto_sort: false do |t|
...
end
```