Sorting items

Hi, I add about 100 items (caption and value both set) to a JQCheckBoxList. After loading the list items I would like to sort them by (for example) the caption of the items.
I cannot get the sorting to work. I understand I should use a compare function and it can't be hard... however it's too hard for me. Can anyone give a small example to make my life easier ? Thanks.
I cannot get the sorting to work. I understand I should use a compare function and it can't be hard... however it's too hard for me. Can anyone give a small example to make my life easier ? Thanks.