From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, 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,868 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,859 Views)

Hi 

 

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

0 Kudos
Message 3 of 4
(2,833 Views)
Solution
Accepted by topic author huihan26

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

Message 4 of 4
(2,825 Views)