To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This VI sorts a two-column array by its first column, then sub-sorts by second column values.
Description
Another version of Sort 2D Array, very simple. This VI sorts a two-column array by its first column, then sub-sorts by second column values. It shows what Index & Bundle Cluster Array function can be used for.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Snippet
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Excellent! just what I was looking for! You may have to transpose the 2D array if you are having a truncated output.
Please consider this alternative. 2D Array Multi-Column Sort Ascending / Descending POLYMORPHIC.
https://decibel.ni.com/content/docs/DOC-48871
It works for all common datatypes and allows the user to select 1 to n columns to sort on.
Tim