allocate function entries in order, so that they don't need to be sorted afterwards