List.js Not Sorting

197 Views Asked by At

I have a simple list at this codepen that I am trying to sort by number but it is not seem to work. I am following the documentation shown for basic list shown here. What am I missing? Thank you.

js for list

var options = { 
  valueNames = ['date', 'number'] 
};
var ResultDiv = new List('ResultDiv', options);
1

There are 1 best solutions below

0
Tudor Constantin On BEST ANSWER

try with:

var options = { 
  valueNames : ['date', 'number'] 
};
var ResultDiv = new List('ResultDiv', options);