Fixed sort of attribute.options.
This commit is contained in:
parent
de9a2a6f2a
commit
64ee0d476f
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue