Commit 77deb9f1 authored by KR Moorhouse's avatar KR Moorhouse

Ensured option repeater order is evaluated as an integer.

parent ebb0cbea
Pipeline #2846 passed with stages
in 2 minutes and 1 second
......@@ -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