List of changes:
- Factor out sorting function for all constructors and destructors.
- Use insertion sort instead of bubble sort. Because insertion sort is much faster when the data is already sorted.
- Add generic automation layer to sort constructors and destructors at compile time.
- Invert subsystem and order values for all destructors to reflect actual order. Because then only one sorting function is needed.
MFC after: 1 week
Sponsored by: NVIDIA Networking