Some courses and learning paths on NI Learning Center may not appear on learner dashboards. Our team is actively investigating.
If you encounter access issues, please contact services@ni.com and include the learner’s name, email, service ID or EA number, and the list of required courses.
To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example demonstrates how to sort an Array of strings that contains both numbers and letters.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Block Diagram
**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.
just what i am looking for.
Thanks a ton mate ! Helped me big time in a crucial situation !
Good but far from perfect. There are cases when the result just doesn't make sense. Also it doesn't care for negative numbers. All short strings come after the long ones. I am looking for quite some time for a good logical sorting algorythm, but I still can't find one that fulfills my needs.
Beautiful....did just what I needed. Saved lots of time. Thanks!
Awesome, thanks. That got the job done from start of searching to implmented in two minutes!
Thanks for putting this together, works most of the time. However, I find that it sorts everything with a 9x in it incorrectly.
I have a folder with 10k files, this sorts the files between 90-99 and shuffles in 901, 902, 903, etc. Ie, the list I get out the other side is 90, 91, 901, 92, 902, etc. Any ideas here?
Nate