To be able to create a custom comparison class, we need to copy the original. For example, to make a custom comparison class for
Sort 1D Array.vi, we would need to copy the
Less Functor.lvclass, as the
Sort 1D array.vi is using less than function by default, which belongs to aforementioned class. In order to copy the class:
1. Close any VI or project which might use the function belonging to that class.
2. Go to
LabVIEW>>
Help>>
Find Examples...3. In
NI Example Finder Window go to
Search and type malleable and open
Malleable VIs - Nested Malleable VIs.

4. In the
Dependencies of that project you can see different comparator classes. Right click on the class with the required functionality and choose
Save>>
Save As and create a copy of the class.

5. Modify the main comparison VI of the class to your liking. Make sure to wire the terminals of the new controls you are comparing.