Added support for custom stack order function
Merge pull request #71 from mrmoosehead/StackingOrderFunction

Added support for custom stack order function