Just cut yourself a length of tartan, fold it in half, and then fold those halves in half, so that the cut edges are inside. Like this: (3

(If you imagine that the ends of the 3 are contiguous with the paren, and the center stroke is lose) then sew along the open edge. That'll create a cord that won't ravel.