SUMMARY
This package automaticaly sorts nodes in either Alphabetical, Numerical or Date order.
This package is ideal for things like news sections where you want documents to appear in date order, or a-z style pages where you want documents automcatialy sorted by name.
HOW TO USE
The package is configured via a documentSorter.config file located in the default umbraco config folder.
To define a new sort rule, create an add element with the following attributes.
After creating your sort rule, touch the web.config file to make it active. The sorting happens each time you Save or Create a document that matches your rules.
UPDATES
1.0.2 - Made docTypeAlias optional so you can sort multiple types. If you don't define docTypeAlias, it is advised you define rootXpath to narrow down the scope of the sort.
1.0.3 - Fixed issue when publishing root node.
1.2.0 - Umbraco v4.5+ compatible & now sorts on create aswell as save and save and publish
1.3.0 - Tree now refreshes automatically after sorting (can be disabled). Couple small bugfixes concerning Scheduled Publishing and Numeric sorting on custom fields. Tested with Umbraco v4.7.1.
2.0.0 beta - Umbraco v6.1.2+ compatible and fully refactored to use v6 API instead of v4
2.0.2 beta - Umbraco v6.1.3+ compatible and bug fixes plus switch to using ContentService.Sort method
BUGS & ISSUES
Sorting documents is inherantly a database intensive process. If you are sorting a LOT of documents, this package may not be the best solution.
Please raise any issues on the forum below. All feedback is welcome and appreciated.