Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

can.List.sort method not available in can v2.2.1?

$
0
0
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 :
  1. var list = new can.List(['item1','item2']);
    console.log(list.sort);

    > undefined
What am I doing wrong?

Thanks,

Thomas

Viewing all articles
Browse latest Browse all 3491

Trending Articles