Creating custom Project Browser plugin - Views -apply Grouping and Sorting

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
My company has Views grouped via a discipline then subset along with family and type (Please see Example A.) so it was a bit of surprised when I went into the AllViews Sample and it listed much differently than what the view originally shown (see Example B.) versus what AllViews Sample had showed (see Example C) until I took off the formatting.
So in my quest to create a plugin that mirrors the Project Browser - how may I go into the Revit API to determine what the grouping, sorting settings are? Then once that is determined what is the best way to take the listing of all the views and then apply that via a tree view? I think the closest sample that can get me started is Revit 2014 SDK - Samples - All Views - but there doesn't seem to be anything on the formatting of the view structure within that code sample.