You can assign Looper to any MIDI track in Cakewalk. Simply select a part of the track you want to loop, drag & drop it into the Looper window, and just like that you're done. Looper allows you to create your own MIDI loop libraries and sort them any way you want.