Hi,
trying to sort a can.Model.List returned by my Model.FindAll method, I was glad to discover in the api the can.List.sort method. But in my context, this method is not available.
Ex :
Thanks,
Thomas
trying to sort a can.Model.List returned by my Model.FindAll method, I was glad to discover in the api the can.List.sort method. But in my context, this method is not available.
Ex :
-
var list = new can.List(['item1','item2']);
console.log(list.sort);
> undefined
Thanks,
Thomas