简体   繁体   中英

List.js Not Sorting

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);

try with:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM