From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array not able to sort

Solved!
Go to solution

Hi

 

What are the possible reasons that one of the column of the 1D array not being able to sort accordingly?

 

 

0 Kudos
Message 1 of 4
(2,869 Views)

It looks like you are sorting strings. These will be sorted by theit ascii values, character by character I guess. That means that 14 comes before 2, since "1" is before "2". You should try and convert to integer and see what happens!

Message 2 of 4
(2,860 Views)

Hi 

 

Do you mean by this ? (refer to attachment) however it still cannot be sort.

0 Kudos
Message 3 of 4
(2,834 Views)
Solution
Accepted by huihan26

Exactly! But now you by mistake show the unsorted array... Smiley Happy

Message 4 of 4
(2,826 Views)