xtk treeview: add option to control sorting

(integrated from master branch change 63213fe by Todd Whiteman <toddw@activestate.com>)