Added support for custom stack order function

Jos, have added support for a customer stacking order function. Just missing one last bit - when I first set up my timeline and add items, it doesn't seem to work. However, when resizing or scrolling, it does. As far as I can tell, it follows the same code path - any thoughts?