BlackBerry interview question

Design a function that takes a structure and inserts it into a sorted linked list of structures