Commit 67b4ef57 authored by Eric Windham's avatar Eric Windham

Merge branch '4050-import-list-order' into 'develop'

Ensured option repeater order is evaluated as an integer.

Closes #4050

See merge request !3855
parents ebb0cbea 77deb9f1
Pipeline #2848 passed with stages
in 1 minute and 16 seconds
......@@ -9,7 +9,9 @@
define( ['models/app/optionRepeaterModel'], function( listOptionModel ) {
var collection = Backbone.Collection.extend( {
model: listOptionModel,
comparator: 'order',
comparator: function( model ){
return parseInt( model.get( 'order' ) );
},
initialize: function( models, options ) {
// Listen to the 'sort' event
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment