c2 hal sample plugin: preserve the order of AddFactory

The implementation used to sort the traits alphabetically according to
its names, but it would make more sense to preserve the order of
AddFactory.

Bug: 346405931
Test: m sample-codec2-hidl-plugin
Change-Id: I86ff15c20f3a456b24b449296f15d381b2beea28
1 file changed