Fixed sort of attribute.options.

This commit is contained in:
Martin Edenhofer 2013-10-01 23:42:35 +02:00
parent de9a2a6f2a
commit 64ee0d476f

View file

@ -1099,10 +1099,9 @@ class App.ControllerForm extends App.Controller
attribute.options.push row attribute.options.push row
else else
order = _.sortBy( order = _.sortBy(
_.keys( selection, (item) -> _.keys(selection), (item) ->
selection[item].toString().toLowerCase() selection[item].toString().toLowerCase()
) )
).reverse()
for key in order for key in order
name_new = selection[key] name_new = selection[key]
if attribute.translate if attribute.translate