The sort works on the first item in the cluster. So the cluster order (which we cannot exactly know based on the picture) matters.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions Unofficial Forum Rules and Guidelines "Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Because if the String Value is the first item in the cluster, then you will get 3 as an answer.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions Unofficial Forum Rules and Guidelines "Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
It would help readability if LabVIEW automatically ordered the elements in the cluster constant (top-down maybe) or actually identified with a little number the order of each element within the Cluster. This could be expanded to the Front Panel when in edit mode.
You can use the Autosizing->Arrange Vertically to view the elements in order.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions Unofficial Forum Rules and Guidelines "Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Yep, but I'd prefer something that worked for all. If I have picked up someone elses code for a review maybe, I don't want to go through and have to check how each cluster constant is configured.
All says about the order of the cluster. I see the cluster order is already mentioned as 1,2,3 from top down in Steve's VI. Which says the answer should be option A.
Right-click on your cluster constants and choose to reorder the cluster. Make the string first in the cluster order and you will get 3 for your answer.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions Unofficial Forum Rules and Guidelines "Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
krishnaprasad-kp, you really should read all of the comments. The cluster order is not necessarily the same as what is seen.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions Unofficial Forum Rules and Guidelines "Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
No, the image is not clear about CLUSTER ORDER. There is nothing there to state what the order is. I can very easily make two VIs that will look identical as the image above and will give you two different results.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions Unofficial Forum Rules and Guidelines "Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5