Knitting and crochet pattern display and sorting using angular.js