Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Sort checklist items
var card = new Card({link: ""});//click "Share" on the card to get the link
var sorted = card.checklist("My Checklist").items().asArray();
comparator = function(item1,item2)
var ret = 0;
if( >
ret = 1;
else if( <
ret = -1;
return ret;
new IterableCollection(sorted).each(function(item,key)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment