ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to do Date Sorting

Hii

   I am having one array in that i am having dates like 6/2/2008 10.45 am,7/2/2007 11.45 am.........
    Now i want to sort these date how to do
0 Kudos
Message 1 of 3
(3,017 Views)

Hi Karthikeyan,

Use the Sort 1D array function from the Array pallette.

See the attached VI.

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 2 of 3
(3,013 Views)

Note that Sort 1D Array function ll always do an ascending order of sorting.

If you want chronological sorting from present to past dates, use a Reverse 1D Array function after the sorting function.

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 3 of 3
(3,011 Views)